Skip to content

Commit

Permalink
[Python] Improve type hints of cluster objects (project-chip#29966)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
agners authored Oct 17, 2024
1 parent 97afd92 commit c03ffef
Show file tree
Hide file tree
Showing 2 changed files with 5,095 additions and 5,093 deletions.
Loading

0 comments on commit c03ffef

Please sign in to comment.