Skip to content

Commit 54f00b1

Browse files
committed
moved __all__ dunder to top
1 parent 0cf989b commit 54f00b1

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

confuse/core.py

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,13 @@
1717
"""
1818
from __future__ import annotations
1919

20+
__all__ = [
21+
'CONFIG_FILENAME', 'DEFAULT_FILENAME', 'ROOT_NAME', 'REDACTED_TOMBSTONE',
22+
'ConfigView', 'RootView', 'Subview', 'Configuration',
23+
'ConfigSource', 'EnvSource', 'YamlSource',
24+
'ConfigTypeError', 'NotFoundError', 'ConfigError',
25+
]
26+
2027
import errno
2128
import os
2229
from pathlib import Path
@@ -30,6 +37,8 @@
3037
from .sources import ConfigSource, EnvSource, YamlSource
3138
from .exceptions import ConfigTypeError, NotFoundError, ConfigError
3239

40+
41+
3342
CONFIG_FILENAME = 'config.yaml'
3443
DEFAULT_FILENAME = 'config_default.yaml'
3544
ROOT_NAME = 'root'
@@ -715,10 +724,3 @@ def clear(self):
715724

716725

717726
# "Validated" configuration views: experimental!
718-
719-
__all__ = [
720-
'CONFIG_FILENAME', 'DEFAULT_FILENAME', 'ROOT_NAME', 'REDACTED_TOMBSTONE',
721-
'ConfigView', 'RootView', 'Subview', 'Configuration',
722-
'ConfigSource', 'EnvSource', 'YamlSource',
723-
'ConfigTypeError', 'NotFoundError', 'ConfigError',
724-
]

0 commit comments

Comments
 (0)