Skip to content

Commit

Permalink
fix test signature
Browse files Browse the repository at this point in the history
  • Loading branch information
RomainMuller committed Aug 3, 2022
1 parent d664463 commit 5787089
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/@jsii/python-runtime/tests/test_python.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@ def baz_interface_func(b: IBaz) -> None:

def test_overrides_method_with_kwargs() -> None:
class Overridden(OverrideMe):
def implement_me(self, *, name: str, count: jsii.Number = None) -> bool:
def implement_me(
self, *, name: str, count: Optional[jsii.Number] = None
) -> bool:
return name == "John Doe" and count is None

assert OverrideMe.call_abstract(Overridden())
Expand Down

0 comments on commit 5787089

Please sign in to comment.