Skip to content

Commit 903755b

Browse files
authored
Fix type hints (#1049)
1 parent f41a7e3 commit 903755b

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

requirements-dev.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ types-pytz>=2022.1.2
1515

1616
# needed for running tests
1717
coverage[toml]>=5.5
18-
freezegun >= 1.2.2
18+
# pin freezegun to 1.4.x until https://github.com/spulec/freezegun/pull/546 is resolved
19+
freezegun ~= 1.4.0
1920
mock>=4.0.3
2021
pytest>=6.2.5
2122
pytest-asyncio>=0.16.0

src/neo4j/_async/_debug/_concurrency_check.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ def non_concurrent_method(cls, f: _TWrapped) -> _TWrapped:
7575
"NonConcurrentMethodChecked.non_concurrent_method"
7676
)
7777

78-
@wraps(f)
7978
@copy_signature(f)
79+
@wraps(f)
8080
async def inner(*args, **kwargs):
8181
self = args[0]
8282
assert isinstance(self, cls)
@@ -114,8 +114,8 @@ def non_concurrent_iter(cls, f: _TWrappedIter) -> _TWrappedIter:
114114
"NonConcurrentMethodChecked.non_concurrent_iter"
115115
)
116116

117-
@wraps(f)
118117
@copy_signature(f)
118+
@wraps(f)
119119
async def inner(*args, **kwargs):
120120
self = args[0]
121121
assert isinstance(self, cls)

src/neo4j/_sync/_debug/_concurrency_check.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ def non_concurrent_method(cls, f: _TWrapped) -> _TWrapped:
7575
"NonConcurrentMethodChecked.non_concurrent_method"
7676
)
7777

78-
@wraps(f)
7978
@copy_signature(f)
79+
@wraps(f)
8080
def inner(*args, **kwargs):
8181
self = args[0]
8282
assert isinstance(self, cls)
@@ -114,8 +114,8 @@ def non_concurrent_iter(cls, f: _TWrappedIter) -> _TWrappedIter:
114114
"NonConcurrentMethodChecked.non_concurrent_iter"
115115
)
116116

117-
@wraps(f)
118117
@copy_signature(f)
118+
@wraps(f)
119119
def inner(*args, **kwargs):
120120
self = args[0]
121121
assert isinstance(self, cls)

0 commit comments

Comments
 (0)