Skip to content

Type stubs issue #74

Description

@elohmeier

When using processOne there is a typeerror:

  File "/nix/store/rs2zdh5pswwn2j161f2l5yim513p4081-python3-3.12.3-env/lib/python3.12/site-packages/thefuzz/process.py", line 107, in <module>
    ) -> t.Iterator[_Result, None, None]:
         ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^
  File "/nix/store/aav6i2sih47qjwz0shpl4mmpp877v16k-python3-3.12.3/lib/python3.12/typing.py", line 398, in inner
    return func(*args, **kwds)
           ^^^^^^^^^^^^^^^^^^^
  File "/nix/store/aav6i2sih47qjwz0shpl4mmpp877v16k-python3-3.12.3/lib/python3.12/typing.py", line 1455, in __getitem__
    _check_generic(self, params, self._nparams)
  File "/nix/store/rs2zdh5pswwn2j161f2l5yim513p4081-python3-3.12.3-env/lib/python3.12/site-packages/typing_extensions.py", line 2724, in _check_generic
    raise TypeError(f"Too {'many' if alen > elen else 'few'} arguments"
TypeError: Too many arguments for typing.Iterator; actual 3, expected 1

This is on 83bea3d (latest master as of now)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions