Skip to content

We're hitting Pyright's complexity limits #11765

@Pwuts

Description

@Pwuts

Pyright has limits regarding the maximum cyclomatic complexity and statement count of a module. If a module exceeds such a limit, Pyright refuses to analyze its types, and all of the exported types become Any.

This is a problem for us because the ORM library we use, prisma-client-py, generates huge monolithic type and model files, which we recently found out are close to Pyright's limit.

We need to ensure the continued functionality of the type-checks on our codebase.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions