Skip to content

Fix issues for Mypy 0.950 and Pydantic 1.9.0#10786

Merged
svlandeg merged 13 commits intoexplosion:masterfrom
richardpaulhudson:feature/mypy-fixes
May 25, 2022
Merged

Fix issues for Mypy 0.950 and Pydantic 1.9.0#10786
svlandeg merged 13 commits intoexplosion:masterfrom
richardpaulhudson:feature/mypy-fixes

Conversation

@richardpaulhudson
Copy link
Contributor

@richardpaulhudson richardpaulhudson commented May 12, 2022

This spaCy PR depends on explosion/thinc#599, so that this spaCy PR will not turn green until a version of Thinc is released that incorporates that Thinc PR.

Types of change

Mypy / Pydantic fixes

Checklist

  • I confirm that I have the right to submit this contribution under the project's MIT license.
  • I ran the tests, and all new and existing tests passed.
  • My changes don't require a change to the documentation, or if they do, I've added all required information.

@abi-jey
Copy link

abi-jey commented May 16, 2022

Do you think this, will be available in the next release?

@svlandeg svlandeg added enhancement Feature requests and improvements types Issues related to typing or typing tools labels May 17, 2022
@svlandeg
Copy link
Contributor

Do you think this, will be available in the next release?

Hi! We're planning to finish & release this for Thinc 8.1 and spaCy 3.4 🎉

Copy link
Contributor

@svlandeg svlandeg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's encouraging to see that we can remove so many ignores & casts, nice work Richard!

Copy link
Contributor

@danieldk danieldk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks like a really nice improvement! I added a question about casting in some set_dim calls.

@richardpaulhudson richardpaulhudson marked this pull request as ready for review May 23, 2022 08:56
@danieldk danieldk self-requested a review May 23, 2022 09:16
@svlandeg svlandeg self-requested a review May 23, 2022 09:23
@svlandeg svlandeg added the v3.4 Related to v3.4 label May 24, 2022
Copy link
Contributor

@svlandeg svlandeg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great Richard - nice work!

@svlandeg svlandeg merged commit 32954c3 into explosion:master May 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Feature requests and improvements types Issues related to typing or typing tools v3.4 Related to v3.4

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants