mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2025-07-06 13:23:15 +03:00
Add version fix
This commit is contained in:
parent
0d1334638f
commit
e644577223
File diff suppressed because it is too large
Load Diff
|
@ -1,14 +1,21 @@
|
||||||
"""Containers module."""
|
"""Containers module."""
|
||||||
|
|
||||||
|
import sys
|
||||||
|
|
||||||
import six
|
import six
|
||||||
|
|
||||||
from .errors import Error
|
from .errors import Error
|
||||||
|
|
||||||
from .providers cimport (
|
from .providers cimport (
|
||||||
Provider,
|
Provider,
|
||||||
deepcopy,
|
deepcopy,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
if sys.version_info[:2] >= (3, 7):
|
||||||
from .wiring import wire
|
from .wiring import wire
|
||||||
|
else:
|
||||||
|
def wire(*args, **kwargs):
|
||||||
|
raise NotADirectoryError('Wiring requires Python 3.7 or above')
|
||||||
|
|
||||||
|
|
||||||
class DynamicContainer(object):
|
class DynamicContainer(object):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user