Skip to content

Commit 4dd5ec9

Browse files
committed
small changes
1 parent 046281b commit 4dd5ec9

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

packages/modern-di/modern_di/container.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
T_co = typing.TypeVar("T_co", covariant=True)
1414

1515

16-
class Container(contextlib.AbstractAsyncContextManager["Container"]):
16+
class Container(contextlib.AbstractAsyncContextManager["Container"], contextlib.AbstractContextManager["Container"]):
1717
__slots__ = (
1818
"_is_async",
1919
"_overrides",

pyproject.toml

-2
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,6 @@ ignore = [
4040
"S101", # allow asserts
4141
"TCH", # ignore flake8-type-checking
4242
"FBT", # allow boolean args
43-
"ANN101", # missing-type-self
44-
"ANN102", # missing-type-cls
4543
"D203", # "one-blank-line-before-class" conflicting with D211
4644
"D213", # "multi-line-summary-second-line" conflicting with D212
4745
"COM812", # flake8-commas "Trailing comma missing"

0 commit comments

Comments
 (0)