Skip to content

Fix type resolution for fully-qualified type hints with leading backslah#129

Merged
mszabo-wikia merged 1 commit into
mainfrom
fix-aliased-type-hint-resolution
Apr 24, 2026
Merged

Fix type resolution for fully-qualified type hints with leading backslah#129
mszabo-wikia merged 1 commit into
mainfrom
fix-aliased-type-hint-resolution

Conversation

@mszabo-wikia
Copy link
Copy Markdown
Collaborator

Fully-qualified types like \HH\Awaitable<_> were not matching known type patterns in get_type_from_hint because the leading \ was not stripped before the match. This caused them to fall through to TReference -> TNamedObject instead of the correct TAwaitable, making them incompatible with parameter types resolved from stubs.

…lash

Fully-qualified types like `\HH\Awaitable<_>` were not matching known
type patterns in `get_type_from_hint` because the leading `\` was not
stripped before the match. This caused them to fall through to
`TReference` -> `TNamedObject` instead of the correct `TAwaitable`,
making them incompatible with parameter types resolved from stubs.

Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
@mszabo-wikia mszabo-wikia merged commit e33c8ff into main Apr 24, 2026
2 checks passed
@mszabo-wikia mszabo-wikia deleted the fix-aliased-type-hint-resolution branch April 24, 2026 18:57
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.

2 participants