Privatize APIs by renaming or removing them from __all__ (#6021)

This commit is contained in:
Jakub Kuczys
2023-04-17 23:44:33 +02:00
committed by GitHub
parent eafbb06756
commit f051eae92d
126 changed files with 508 additions and 157 deletions

View File

@@ -13,16 +13,13 @@ from typing import (
Union as _Union,
)
MIN_PYTHON_VERSION = (3, 8, 1)
__all__ = [
"MIN_PYTHON_VERSION",
__all__ = (
"__version__",
"version_info",
"VersionInfo",
"_update_event_loop_policy",
]
)
MIN_PYTHON_VERSION = (3, 8, 1)
if _sys.version_info < MIN_PYTHON_VERSION:
print(
f"Python {'.'.join(map(str, MIN_PYTHON_VERSION))} is required to run Red, but you have "