mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 13:04:46 +08:00
Add __all__ to most modules beginning with 'n', 'o' and 'p' (#7345)
This commit is contained in:
@@ -1,6 +1,11 @@
|
||||
import sys
|
||||
from typing import AnyStr
|
||||
|
||||
if sys.version_info >= (3, 7):
|
||||
__all__ = ["compile", "main", "PyCompileError", "PycInvalidationMode"]
|
||||
else:
|
||||
__all__ = ["compile", "main", "PyCompileError"]
|
||||
|
||||
class PyCompileError(Exception):
|
||||
exc_type_name: str
|
||||
exc_value: BaseException
|
||||
|
||||
Reference in New Issue
Block a user