mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-23 11:32:07 +08:00
Fix various __all__-related errors and omissions (#8031)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user