Skip to content

refactor(core): catch specific exceptions in type hint resolution#44

Merged
mvallebr merged 12 commits into
mainfrom
fix/issue-39-annotations-exception-cleanup
Jun 19, 2026
Merged

refactor(core): catch specific exceptions in type hint resolution#44
mvallebr merged 12 commits into
mainfrom
fix/issue-39-annotations-exception-cleanup

Conversation

@mvallebr

Copy link
Copy Markdown
Contributor

This PR refactors the exception handling in type hint resolution (Issue #39) to catch specific exceptions (NameError, TypeError) instead of a broad Exception.

  • initialize_parameters: Catch (NameError, TypeError) when calling typing.get_type_hints.
  • get_safe_type_hints: Catch (NameError, TypeError) when calling typing.get_type_hints.

@mvallebr mvallebr merged commit 1762a31 into main Jun 19, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant