Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typing for attributes in components and elements #3

Open
paveldedik opened this issue Mar 14, 2024 · 0 comments
Open

Fix typing for attributes in components and elements #3

paveldedik opened this issue Mar 14, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@paveldedik
Copy link
Member

paveldedik commented Mar 14, 2024

It is not possible to do the following yet:

class Foo[T: TypedDict]:
  def method(self, **kwargs: Unpack[T]) -> None: ...

Here is an open issue: python/typing#1399

When this is implemented and adopted by mypy/pyright, it should be uncommented in the code:

https://github.com/paveldedik/ludic/blob/fe281b7e482322800a6e67043f2b32b6fe623a1d/ludic/base.py#L299-L300

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant