You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Because optgroup.group and optgroup.option do not have hints on their return types. mypy generates errors at the call site like Untyped decorator makes function "cli" untyped.
I think this could be resolved by adding type hints on the return values of these functions, as described in the mypy documentation.
The text was updated successfully, but these errors were encountered:
The documentation of how to type-check decorators is rather vague, especially in order to add optional arguments. If there is any example that would help.
with the addition of the Decorator definition added in a468470 this should be fixable by adding the return type annotation -> Decorator to _OptGroup.group
Because
optgroup.group
andoptgroup.option
do not have hints on their return types. mypy generates errors at the call site likeUntyped decorator makes function "cli" untyped
.I think this could be resolved by adding type hints on the return values of these functions, as described in the mypy documentation.
The text was updated successfully, but these errors were encountered: