Skip to content

Conversation

@ElLorans
Copy link
Contributor

@ElLorans ElLorans commented Nov 1, 2025

Partially addresses #2440

disallow_subclassing_any, disallow_untyped_decorators, disallow_any_generics.
I would need help on the best way to define T_COLUMN_FORMATTERS (see the comment)

@ElLorans ElLorans force-pushed the type-hints branch 3 times, most recently from 2ebd434 to 40b5113 Compare November 2, 2025 20:16
@ElLorans ElLorans marked this pull request as ready for review November 2, 2025 20:19
@ElLorans ElLorans force-pushed the type-hints branch 3 times, most recently from fbf1e2a to 085221a Compare November 8, 2025 12:48
[
# First arg inherits from BaseModelView.
# Cannot type hint and allow users to override without type errors
t.Any,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Changing this type hint requires users to then type ignore it.

@ElLorans
Copy link
Contributor Author

I do not find a better way to define T_COLUMN_FORMATTERS, so I would merge the PR as it is

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

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants