Skip to content

Commit 854c90f

Browse files
agnersyyzhong-g
authored andcommitted
[Python] Improve type hints of cluster objects (project-chip#29966)
* Use default value for initialization The default value returns a valid value for the initialization according to the type hints. This lowers the type hints errors using mypy from 838 to 354. * Make response_type an optional string if initialized to None This reduced mypy type errors from 354 to 163. * Use non-string type annotations Python 3.7 and newer don't need strings for type annotations anymore. This makes type annotations more readable in most editors. * regen
1 parent 4018428 commit 854c90f

File tree

2 files changed

+5095
-5093
lines changed

2 files changed

+5095
-5093
lines changed

0 commit comments

Comments
 (0)