Skip to content

Ban dynamic builtins and typing.cast in lint config#3181

Merged
adamtheturtle merged 1 commit into
mainfrom
chore/pylint-builtin-bans
May 20, 2026
Merged

Ban dynamic builtins and typing.cast in lint config#3181
adamtheturtle merged 1 commit into
mainfrom
chore/pylint-builtin-bans

Conversation

@adamtheturtle
Copy link
Copy Markdown
Member

Summary

  • Add literalizer DEPRECATED_BUILTINS.bad-functions pylint config.
  • Ban typing.cast via ruff where applicable.
  • Fix or pylint-disable existing violations.

Test plan

  • CI lint passes.

Made with Cursor

Align pylint and ruff with literalizer: forbid bare filter, getattr,
hasattr, map, and setattr via pylint, and ban typing.cast via ruff.
Fix or exempt existing violations.

Co-authored-by: Cursor <cursoragent@cursor.com>
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