Skip to content
New issue

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

Improve type hints #29

Merged
merged 5 commits into from
Jul 17, 2024
Merged

Improve type hints #29

merged 5 commits into from
Jul 17, 2024

Conversation

SamDudley
Copy link
Owner

@SamDudley SamDudley commented Jul 12, 2024

  • h now raises TypeError when an invalid
    number of arguments are passed (previously
    raised ValueError)
  • upgrade all dev dependencies
  • remove all use of Any
  • change h type hints to be superset of overloads
  • add HtmlChild type alias
  • add HtmlChildren type alias
  • remove ElementOrString type alias
  • remove Children type alias
  • replace SupportsStr with object
  • remove SupportsStr protocol
  • remove HtmlAttributeValue type alias

Closes #25

* remove all `Any` types
* type `h` as a superset of overloads
* replace `SupportsStr` with `object`
* remove `HtmlAttributeValue`
* add `HtmlChildren` type alias
* add `HtmlChild` type alias
* remove `ElementOrString` type alias
* remove `Children` type alias
@SamDudley SamDudley changed the title SamDudley/issue25 Improve type hints Jul 17, 2024
@SamDudley SamDudley merged commit b8ac720 into main Jul 17, 2024
3 checks passed
@SamDudley SamDudley deleted the SamDudley/issue25 branch July 17, 2024 12:56
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.

Improve types
1 participant