File tree Expand file tree Collapse file tree 5 files changed +7
-5
lines changed Expand file tree Collapse file tree 5 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ requires-python = ">=3.10"
5353# developper consistency. All other dependencies are as above.
5454dev = [" ruff==0.14.7" , { include-group = " test" }, { include-group = " types" }]
5555test = [" pytest-cov~=7.0" , " pytest~=9.0" ]
56- types = [" mypy==1.18.2 " ]
56+ types = [" mypy==1.19.0 " ]
5757
5858# ###############################################################################
5959# # Build System
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ dependencies = ["cffi~=2.0"]
4343[dependency-groups ]
4444dev = [" ruff==0.14.7" , { include-group = " test" }, { include-group = " types" }]
4545test = [" pytest-cov~=7.0" , " pytest~=9.0" ]
46- types = [" mypy==1.18.2 " , " typing-extensions~=4.0" ]
46+ types = [" mypy==1.19.0 " , " typing-extensions~=4.0" ]
4747
4848# ###############################################################################
4949# # Build System
Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ test = [
121121 " testcontainers~=4.0" ,
122122]
123123types = [
124- " mypy==1.18.2 " ,
124+ " mypy==1.19.0 " ,
125125 " types-grpcio~=1.0" ,
126126 " types-protobuf~=6.0" ,
127127 " types-requests~=2.0" ,
Original file line number Diff line number Diff line change @@ -146,7 +146,7 @@ def __import__( # noqa: N807
146146 name : builtins .str ,
147147 globals : Mapping [builtins .str , object ] | None = None ,
148148 locals : Mapping [builtins .str , object ] | None = None ,
149- fromlist : Sequence [builtins .str ] = () ,
149+ fromlist : Sequence [builtins .str ] | None = None ,
150150 level : builtins .int = 0 ,
151151) -> ModuleType :
152152 """
@@ -157,6 +157,7 @@ def __import__( # noqa: N807
157157 done to avoid shadowing built-in types and functions.
158158 """
159159 __tracebackhide__ = True
160+ fromlist = fromlist or ()
160161 if name == "pact.generate" and len (set (fromlist ) - {"AbstractGenerator" }) > 0 :
161162 warnings .warn (
162163 "Avoid `from pact.generate import <func>`. "
Original file line number Diff line number Diff line change @@ -317,7 +317,7 @@ def __import__( # noqa: N807
317317 name : builtins .str ,
318318 globals : Mapping [builtins .str , object ] | None = None ,
319319 locals : Mapping [builtins .str , object ] | None = None ,
320- fromlist : Sequence [builtins .str ] = () ,
320+ fromlist : Sequence [builtins .str ] | None = None ,
321321 level : builtins .int = 0 ,
322322) -> ModuleType :
323323 """
@@ -328,6 +328,7 @@ def __import__( # noqa: N807
328328 avoid shadowing built-in types and functions.
329329 """
330330 __tracebackhide__ = True
331+ fromlist = fromlist or ()
331332 if name == "pact.match" and len (set (fromlist ) - {"AbstractMatcher" }) > 0 :
332333 warnings .warn (
333334 "Avoid `from pact.match import <func>`. "
You can’t perform that action at this time.
0 commit comments