Use singleton enum for "not set" sentinels (#41990)
* Use singleton enum for "not set" sentinel https://www.python.org/dev/peps/pep-0484/#support-for-singleton-types-in-unions * Remove unused variable
This commit is contained in:
parent
de04a1ed67
commit
317ed418dd
11 changed files with 139 additions and 131 deletions
|
@ -48,7 +48,7 @@ CUSTOM_WARNING = (
|
|||
"cause stability problems, be sure to disable it if you "
|
||||
"experience issues with Home Assistant."
|
||||
)
|
||||
_UNDEF = object()
|
||||
_UNDEF = object() # Internal; not helpers.typing.UNDEFINED due to circular dependency
|
||||
|
||||
MAX_LOAD_CONCURRENTLY = 4
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue