Traceback (most recent call last):
File "test.py", line 3, in <module>
import A
File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/typeguard/_importhook.py", line 98, in exec_module
super().exec_module(module)
File "A.py", line 7, in <module>
f()
File "A.py", line 3, in f
if v := tuple():
^^^^^^^^^^^^
TypeError: check_variable_assignment() takes 3 positional arguments but 4 were given
Things to check first
I have searched the existing issues and didn't find my bug already reported there
I have checked that my bug is still present in the latest release
Typeguard version
4.4.1
Python version
3.12.1
What happened?
How can we reproduce the bug?
test.py:A.py:The problem only occurs when
vis a local variable.