Skip to content

Commit

Permalink
Add --strict-optional flag to testParamSpecClassConstructor
Browse files Browse the repository at this point in the history
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
  • Loading branch information
VincentVanlaer and hauntsaninja authored Nov 20, 2022
1 parent 9773e70 commit 92f9899
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test-data/unit/check-parameter-specification.test
Original file line number Diff line number Diff line change
Expand Up @@ -1298,6 +1298,7 @@ reveal_type(bar(C(fn=foo, x=1))) # N: Revealed type is "__main__.C[[x: builtins
[builtins fixtures/paramspec.pyi]

[case testParamSpecClassConstructor]
# flags: --strict-optional
from typing import ParamSpec, Callable

P = ParamSpec("P")
Expand Down

0 comments on commit 92f9899

Please sign in to comment.