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 Jun 21, 2024
1 parent b040e20 commit e44d5ff
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,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 e44d5ff

Please sign in to comment.