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

TypeError: called match pattern must be a class #212

Closed
ATATC opened this issue Jun 12, 2024 · 0 comments · Fixed by #213
Closed

TypeError: called match pattern must be a class #212

ATATC opened this issue Jun 12, 2024 · 0 comments · Fixed by #213
Assignees
Labels
bug Something isn't working todo New task or assignment

Comments

@ATATC
Copy link
Member

ATATC commented Jun 12, 2024

A bug is introduced in #202.

Unhandled exception in listener callback
Traceback (most recent call last):
  File ".../python3.12/site-packages/pynput/_util/__init__.py", line 228, in inner
    return f(self, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^
  File ".../python3.12/site-packages/pynput/_util/darwin.py", line 265, in _handler
    self._handle(proxy, event_type, event, refcon)
  File "...python3.12/site-packages/pynput/keyboard/_darwin.py", line 269, in _handle
    self.on_press(key)
  File ".../python3.12/site-packages/pynput/_util/__init__.py", line 144, in inner
    if f(*args) is False:
       ^^^^^^^^
  File ".../leads_vec/cli.py", line 310, in on_press
    case _KeyCode.from_char("1"):
         ^^^^^^^^^^^^^^^^^^^^^^^
TypeError: called match pattern must be a class
@ATATC ATATC added bug Something isn't working todo New task or assignment labels Jun 12, 2024
@ATATC ATATC added this to the Stable Release: 1.x milestone Jun 12, 2024
@ATATC ATATC self-assigned this Jun 12, 2024
@ATATC ATATC linked a pull request Jun 12, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working todo New task or assignment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant