Skip to content

improved LSP support + type testing#10

Merged
robinvandernoord merged 2 commits into
masterfrom
feature/improved-lsp-support
May 20, 2026
Merged

improved LSP support + type testing#10
robinvandernoord merged 2 commits into
masterfrom
feature/improved-lsp-support

Conversation

@robinvandernoord
Copy link
Copy Markdown
Member

@robinvandernoord robinvandernoord commented May 11, 2026

pycharm doesn't understand the _RelationshipAccessor logic so this version is not usable yet!

  • mypy support stays the same
  • (based)pyright support should increase a lot

Perhaps we should simplify the Relationship stuff again, and just accept that SomeType.some_relationship is not fully typed well.
That should be the biggest tradeoff in this PR.

Pycharm still doesn't understand the difference between class-level and instance-level types but at least the type-checkers do.

Todo: ensure full parity between the test_typing md files and test_mypy.py; then we may remove the pytest-mypy plugin and file.

@robinvandernoord robinvandernoord changed the title 🔴 improved LSP support + testing ; currently breaks pycharm! improved LSP support + type testing May 20, 2026
@robinvandernoord robinvandernoord merged commit ff6fc2e into master May 20, 2026
0 of 2 checks passed
@robinvandernoord robinvandernoord deleted the feature/improved-lsp-support branch May 20, 2026 09:34
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.

1 participant