Bump mypy to 1.0 (#9684)

This commit is contained in:
Alex Waygood
2023-02-06 23:57:17 +00:00
committed by GitHub
parent f7cb7f33b2
commit efee70abfa
37 changed files with 45 additions and 167 deletions

View File

@@ -42,5 +42,5 @@ def clamp_value(minimum: int, val: int, maximum: int) -> int: ...
# This function attempts to convert objects to bytes,
# *but* just returns the object unchanged if that was unsuccessful!
def asbytes(s: object) -> object: ...
def b(s: str | bytes, encoding: str = "utf-8") -> bytes: ...
def u(s: str | bytes, encoding: str = "utf-8") -> str: ...
def b(s: str | bytes, encoding: str = "utf8") -> bytes: ...
def u(s: str | bytes, encoding: str = "utf8") -> str: ...