general: move assert_never to my.core.compat as it's in stdlib from 3.11
rely on typing-extensions for fallback introducing typing-extensions dependency without fallback, should be ok since it's in the top 10 of popular packages
This commit is contained in:
parent
1317914bff
commit
8834001fe7
10 changed files with 36 additions and 16 deletions
|
@ -4,7 +4,7 @@ from .common import Json
|
|||
from .common import warn_if_empty
|
||||
from .common import stat, Stats
|
||||
from .common import datetime_naive, datetime_aware
|
||||
from .common import assert_never
|
||||
from .compat import assert_never
|
||||
|
||||
from .cfg import make_config
|
||||
from .error import Res, unwrap
|
||||
|
@ -26,7 +26,7 @@ __all__ = [
|
|||
'warn_if_empty',
|
||||
'stat', 'Stats',
|
||||
'datetime_aware', 'datetime_naive',
|
||||
'assert_never',
|
||||
'assert_never', # TODO maybe deprecate from use in my.core? will be in stdlib soon
|
||||
|
||||
'make_config',
|
||||
|
||||
|
@ -34,7 +34,7 @@ __all__ = [
|
|||
|
||||
'Res', 'unwrap',
|
||||
|
||||
'dataclass', 'Path',
|
||||
'dataclass', 'Path', # TODO deprecate these from use in my.core
|
||||
]
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue