Skip to content
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

Fix crash in the visitor implementation #10

Merged
merged 1 commit into from
May 6, 2024
Merged

Conversation

Viicos
Copy link
Owner

@Viicos Viicos commented May 6, 2024

Fixes #8.

It was assumed to always be inside a class, which isn't true in a lot of cases

It was assumed to always be inside a class, which isn't
true in a lot of cases
@Viicos Viicos merged commit bf0572d into main May 6, 2024
7 checks passed
@Viicos Viicos deleted the crash-class-stack branch May 6, 2024 16:13
@crivetimihai
Copy link

Tested, works on my codebase, I can even see a it come back with PYD002 Non-annotated attribute inside Pydantic model for one of my files which was crashing before (but for a different line).

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

flake8-pydantic crashes when myvar: mytype = encountered
2 participants