Skip to content

Conversation

@vincentmacri
Copy link
Member

Fix issues with type annotations when there is a method named list that shadows the name of builtins.list. See python/mypy#13050 for a description of the problem.

Also ran ruff formatter and linter on the modified .pyi files and updated the mypy config while I was at it. Removed a few methods from the .pyi files that were only accessible in Cython and not accessible in Python. There are still some other issues with the .pyi files but this is an improvement at least.

📝 Checklist

  • The title is concise and informative.
  • The description explains in detail what this PR is about.
  • I have linked a relevant issue or discussion.
  • I have created tests covering the changes.
  • I have updated the documentation and checked the documentation preview.

⌛ Dependencies

@github-actions
Copy link

Documentation preview for this PR (built with commit eda0066; changes) is ready! 🎉
This preview will update shortly after each push to this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant