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
Owner

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:

ludic/ludic/base.py

Lines 299 to 300 in fe281b7

# FIXME: https://github.com/python/typing/issues/1399
**attrs: Unpack[TAttrs], # type: ignore

@paveldedik paveldedik added the bug Something isn't working label Mar 14, 2024
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