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

[BUG] TypeError: __init__() got an unexpected keyword argument 'verified' #214

Open
Marishka17 opened this issue Jul 10, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@Marishka17
Copy link

Observed behavior

The exception occurs when trying to set verified=False to the languages filter with str value.

  File "/usr/lib/python3.8/code.py", line 90, in runcode
    exec(code, self.locals)
  File "<console>", line 1, in <module>
  File "/home/maya/Documents/cvat/env/lib/python3.8/site-packages/toloka/client/primitives/operators.py", line 109, in include
    return cls(InclusionOperator.IN, *args, **kwargs)
TypeError: __init__() got an unexpected keyword argument 'verified'

Expected behavior

Explicitly specifying the verified=False parameter should not affect the creation of the filter.

Python Version

3.8

Toloka-Kit Version

1.2.0.post1

Other Packages Versions

No response

Example code

toloka.filter.Languages.in_('EN', verified=False)

Relevant log output

No response

@Marishka17 Marishka17 added the bug Something isn't working label Jul 10, 2023
@Pocoder Pocoder mentioned this issue Sep 8, 2023
6 tasks
@Pocoder
Copy link
Contributor

Pocoder commented Sep 8, 2023

@Marishka17 Thank you for opening issue. This bug is really tricky and needs to be fixed!

What do you expect when you pass verified=False:

  1. All people with specified language
  2. People with specified language who has not verified their knowledge yet
    ?

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

2 participants