-
Notifications
You must be signed in to change notification settings - Fork 114
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Weird problem with IntEnum #398
Comments
Originally the problem appeared on |
This happens when |
I suppose I could special case |
Somehow interpreter is fine with this when |
Of course, since this happens when |
By the way, I suggest you familiarize yourself with the typeguard.config.debug_instrumentation flag. If you run into trouble, it will often give you valuable insight into the instrumentation process. For example, in this particular case:
|
I'm afraid that looking at that dump I still don't see what is the cause of the problem. :( |
Well, remember that classes only appear in the namespace where they are declared once the interpreter has finished executing their bodies? But that |
As you can see from |
Okay, thanks, I see it now, after your explanation. |
The easiest fix I could think of involved replacing Once I solve this issue I'll cut another patch release. |
Fixed via 888a8c5. |
Checked against |
Thanks!! |
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.1.3
Python version
3.10.12
What happened?
How can we reproduce the bug?
test.py
:A.py
:The text was updated successfully, but these errors were encountered: