Skip to content

Remove None from function signatures where possible #32

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

Merged
merged 6 commits into from
Jun 25, 2025

Conversation

juleswg23
Copy link
Collaborator

No description provided.

@github-actions github-actions bot temporarily deployed to pr-32 June 17, 2025 22:36 Destroyed
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this change on line 23 preferable?

Switching from this:

a11y: Literal["deco", "sem"] | None = "deco"

To this

a11y: Literal["deco", "sem", "none"] = "deco"

@github-actions github-actions bot temporarily deployed to pr-32 June 25, 2025 16:30 Destroyed
@github-actions github-actions bot temporarily deployed to pr-32 June 25, 2025 16:54 Destroyed
@github-actions github-actions bot temporarily deployed to pr-32 June 25, 2025 17:17 Destroyed
@@ -38,8 +38,8 @@ def gt_hyperlink(text: str, url: str, new_tab: bool = True) -> int:
def with_tooltip(
label: str,
tooltip: str,
text_decoration_style: Literal["solid", "dotted"] | None = "dotted",
color: str | None = "blue",
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Possibly worth revisiting. Many of the rest I feel good about, but this one feels like I might've taken this theme too far.

@juleswg23 juleswg23 merged commit a709605 into main Jun 25, 2025
4 checks passed
@juleswg23 juleswg23 deleted the cleanup-function-signatures branch June 25, 2025 17:35
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