Bump mypy to 0.930 (#62642)

Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
This commit is contained in:
Tobias Sauerwein
2021-12-27 17:55:17 +01:00
committed by GitHub
parent b0704c190f
commit 2c904c0974
22 changed files with 73 additions and 58 deletions

View File

@@ -14,7 +14,7 @@ class StrEnum(str, Enum):
"""Create a new StrEnum instance."""
if not isinstance(value, str):
raise TypeError(f"{value!r} is not a string")
return super().__new__(cls, value, *args, **kwargs) # type: ignore[call-overload,no-any-return]
return super().__new__(cls, value, *args, **kwargs)
def __str__(self) -> str:
"""Return self.value."""