Skip to content

Fix incorrect type hint for aliases decorator#244

Open
Prajithaa1Parani wants to merge 1 commit intoneithere:masterfrom
Prajithaa1Parani:fix-aliases-type-hint
Open

Fix incorrect type hint for aliases decorator#244
Prajithaa1Parani wants to merge 1 commit intoneithere:masterfrom
Prajithaa1Parani:fix-aliases-type-hint

Conversation

@Prajithaa1Parani
Copy link

This PR fixes the type annotation of the aliases decorator.

The decorator accepts multiple string arguments via *names, but the signature
annotated them as List[str], which caused mypy and pyright errors.
Updating the annotation to str aligns the signature with Python semantics
and resolves the static type checking issue.

Fixes #<243>

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