Skip to content

Commit

Permalink
Merge branch 'master' into feat/dp/default-button-center-align
Browse files Browse the repository at this point in the history
  • Loading branch information
depostnykh committed Jun 22, 2023
2 parents b2caf68 + 06af540 commit 1c7fc5b
Show file tree
Hide file tree
Showing 2 changed files with 71 additions and 64 deletions.
126 changes: 63 additions & 63 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 8 additions & 1 deletion pybotx/missing.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
from typing import Literal, TypeVar, Union
from typing import Any, List, Literal, TypeVar, Union


class _UndefinedType:
"""For fields that can be skipped."""

_instances: List["_UndefinedType"] = []

def __new__(cls, *args: Any) -> "_UndefinedType":
if not cls._instances:
cls._instances.append(super().__new__(cls, *args))
return cls._instances[-1]

def __bool__(self) -> Literal[False]:
return False

Expand Down

0 comments on commit 1c7fc5b

Please sign in to comment.