click-default-group icon indicating copy to clipboard operation
click-default-group copied to clipboard

Missing type hints causes mypy to complain

Open jnewbigin opened this issue 1 year ago • 1 comments

Because of the missing type hints, when using cls=DefaultGroupit is necessary to use # type: ignore to prevent errors like:

error: Untyped decorator makes function "my_function" untyped  [misc]

So I copied the types from click 8.1.7 which makes mypy happy. I'll open the PR shortly.

jnewbigin avatar Feb 16 '24 05:02 jnewbigin

See https://github.com/click-contrib/click-default-group/pull/27 for possible resolution for this issue

jnewbigin avatar Feb 16 '24 05:02 jnewbigin