Skip to content

Commit

Permalink
fix(python): no overload variant of "Factory" matches argument type "…
Browse files Browse the repository at this point in the history
…object" (#1716)

Remove attempt to use a `attr.Factory` for an optional field that should
anyway have defaulted to a plain `None` value.
  • Loading branch information
RomainMuller authored Jun 8, 2020
1 parent 61f8883 commit eee8ea5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@jsii/python-runtime/src/jsii/_kernel/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class CreateRequest:
fqn: str
args: List[Any] = attr.Factory(list)
overrides: List[Override] = attr.Factory(list)
interfaces: Optional[List[str]] = attr.Factory(Optional[list])
interfaces: Optional[List[str]] = None


@attr.s(auto_attribs=True, frozen=True, slots=True)
Expand Down

0 comments on commit eee8ea5

Please sign in to comment.