Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(parser): only infer type hints when necessary (#4183)
fix(parser): only infer type hints when necessary This was breaking in codebases that conditionally import type hints using the `typing.TYPE_CHECKING` constant as described in [PEP 563](https://peps.python.org/pep-0563/#runtime-annotation-resolution-and-type-checking). When the model is provided, there is no need to infer anything. Signed-off-by: Raymond Butcher <[email protected]>
- Loading branch information