Skip to content

Add config option to disable optional checks #4594

Description

@yangdanny97

Describe the Bug

https://mypy.readthedocs.io/en/stable/command_line.html#no-strict-optional

pyright has a bunch of optional-specific error codes, for people who are migrating from codebases without null-safety

ideal implementation is unclear, maybe the easiest way is to treat None as Any in is_subset_eq, but IDK the downstream implications of this.

Sandbox Link

No response

(Only applicable for extension issues) IDE Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    configurationhelp wantedLarger than "good first issue", but still well-defined and ready for someone to pick uptypechecking

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions