Fix various __all__-related errors and omissions (#8031)

This commit is contained in:
Alex Waygood
2022-06-07 23:29:55 +01:00
committed by GitHub
parent 591593c85f
commit e7a5b7a762
15 changed files with 108 additions and 21 deletions

View File

@@ -29,6 +29,9 @@ __all__ = [
"CHAR_MAX",
]
if sys.version_info >= (3, 11):
__all__ += ["getencoding"]
# This module defines a function "str()", which is why "str" can't be used
# as a type annotation or type alias.
from builtins import str as _str