2 Commits
Author SHA1 Message Date
jakob.scheid 10328e6608 refactor(exceptions): define module exports
Added an __all__ variable to the exceptions module.
2026-10-03 18:42:56 +02:00
jakob.scheid bc802f7b38 refactor(utils): define module exports
Added an __all__ variable to the utility module.
2026-10-03 18:40:22 +02:00
2 changed files with 25 additions and 0 deletions

No files matched your search

+15
View File
@@ -15,6 +15,21 @@
import errno import errno
__all__ = [
'NamespaceError',
'InvalidNamespaceError',
'NamespaceNotFoundError',
'NamespaceExistsError',
'PythonIdentifierError',
'InvalidPythonIdentifierError',
'PythonAnnotationError',
'InvalidPythonAnnotationError',
'PythonDefinitionError',
'PythonArgumentStructureError',
'DirectoryNotEmptyError',
]
class NamespaceError(ValueError): class NamespaceError(ValueError):
""" """
Base class for namespace errors. Base class for namespace errors.
+10
View File
@@ -27,6 +27,16 @@ except ImportError:
from typing_extensions import deprecated from typing_extensions import deprecated
__all__ = [
'ExistingDirectory',
'ExistingFile',
'human_readable_list',
'assert_that_is_instance',
'non_empty_str',
'get_relative_path_segments',
]
@deprecated('Use pathlib.Path instead.') @deprecated('Use pathlib.Path instead.')
class ExistingDirectory(pathlib.Path): class ExistingDirectory(pathlib.Path):
""" """