Skip to content

Commit

Permalink
Make response_type an optional string if initialized to None
Browse files Browse the repository at this point in the history
This reduced mypy type errors from 354 to 163.
  • Loading branch information
agners committed Sep 16, 2024
1 parent 03e2055 commit 56bbe1f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ class {{asUpperCamelCase name}}(Cluster):
{{~#if responseName}}
response_type: typing.ClassVar[str] = '{{asUpperCamelCase responseName}}'
{{else}}
response_type: typing.ClassVar[str] = None
response_type: typing.ClassVar[typing.Optional[str]] = None
{{/if}}

@ChipUtility.classproperty
Expand Down

0 comments on commit 56bbe1f

Please sign in to comment.