Skip to content

Fix new mypy version being unhappy with type annotations - #1298

Merged
robsdedude merged 1 commit into
neo4j:6.xfrom
robsdedude:fix/mypy-sadness
Apr 1, 2026
Merged

robsdedude merged 1 commit into
neo4j:6.xfrom
robsdedude:fix/mypy-sadness

Conversation

@robsdedude

Copy link
Copy Markdown
Member

It seems that mypy learned a new trick: assert x is y now narrows the type of the variables if either is more general than the other. I like. For mocks, however, this is not helpful 🙃

@robsdedude
robsdedude merged commit d1cb840 into neo4j:6.x Apr 1, 2026
29 checks passed
@robsdedude
robsdedude deleted the fix/mypy-sadness branch April 1, 2026 08:19
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.

2 participants