Skip to content

model: fill in missing type annotations - #650

Open
jorenham wants to merge 1 commit into
qlustered:devfrom
jorenham:typing/model/coverage
Open

jorenham wants to merge 1 commit into
qlustered:devfrom
jorenham:typing/model/coverage

Conversation

@jorenham

Copy link
Copy Markdown

Like #649, this improves type coverage in deepdiff.model by annotating the untyped public typables. No new mypy or pyright errors (-1 mypy error even), and the tests still pass.

I also took the liberty of using the non-deprecated modern typing special forms (e.g. T | None instead of Optional[T], type[T] instead of Type[T], etc.); hope you don't mind (and if you do mind, then I could split this PR up).

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