Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doc: Add Optional in Decorator factories #14156

Merged
merged 1 commit into from
Nov 21, 2022
Merged

Commits on Nov 21, 2022

  1. Doc: Add Optional in Decorator factories

    mypy complains about
    
      error: Incompatible default for argument "__func" (default has type "None", argument has type "Callable[..., Any]")  [assignment]
      note: PEP 484 prohibits implicit Optional. Accordingly, mypy has changed its default to no_implicit_optional=True
    
    This change adds Optional around "Callable[..., Any]] = None"
    tomschr authored Nov 21, 2022
    Configuration menu
    Copy the full SHA
    ee52217 View commit details
    Browse the repository at this point in the history