We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
recorded_type
TypeInspector
Literal
>>> from typing_validation import can_validate >>> from typing import Literal >>> v = can_validate(Literal[0, 1]) >>> v The following type can be validated against: Literal[0, 1] >>> v.recorded_type Traceback (most recent call last): File "<stdin>", line 1, in <module> File "C:\Users\Stefa\Documents\git\hashberg-io\typing-validation\typing_validation\validation.py", line 143, in recorded_type t, idx = self._recorded_type(0) ^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Stefa\Documents\git\hashberg-io\typing-validation\typing_validation\validation.py", line 166, in _recorded_type return Literal.__getitem__(Literal, *param), idx # pylint: disable = unnecessary-dunder-call ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: _LiteralSpecialForm.__getitem__() takes 2 positional arguments but 4 were given
The text was updated successfully, but these errors were encountered:
ca3fb91
No branches or pull requests
The text was updated successfully, but these errors were encountered: