toloka-kit icon indicating copy to clipboard operation
toloka-kit copied to clipboard

[BUG] type annotations for optional parameters

Open alexdrydew opened this issue 2 years ago • 0 comments

Observed behavior

Type annotations of optional parameters are not propagated to __init__ methods of the attrs generated classes, which leads to incrorect stubs and failing mypy.

Expected behavior

Every Optional[...] or Union[..., None] parameter should have a correct annotation in the __init__ method

Python Version

3.9

Toloka-Kit Version

1.0.2

Other Packages Versions

No response

Example code

https://github.com/Toloka/toloka-kit/blob/8d672fb86ffd6b0c9455f670616a30db4100467a/src/client/search_requests.pyi#L614

Relevant log output

No response

alexdrydew avatar Nov 14 '22 15:11 alexdrydew