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

Clean up URL signature. #3245

Merged
merged 2 commits into from
Jul 23, 2024
Merged

Clean up URL signature. #3245

merged 2 commits into from
Jul 23, 2024

Conversation

tomchristie
Copy link
Member

Refs #3176 (comment)

Our public methods currently include a shortcut type URLTypes, which is not public API.
This refactoring removes the shortcut type in favor of explicit typing.

There are also other similar cases, tho one this is an easy refactoring to demonstrate.

@tomchristie tomchristie added the refactor Issues and PRs related to code refactoring label Jul 23, 2024
VerifyTypes,
)
from ._urls import URL
Copy link
Contributor

Choose a reason for hiding this comment

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

could it be under typing.TYPE_CHECKING?

Copy link
Member Author

Choose a reason for hiding this comment

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

I'd only use that if it was required to avoid a cyclical dependency.

@tomchristie
Copy link
Member Author

Build failures addressed in #3246

@tomchristie tomchristie merged commit 359f77d into master Jul 23, 2024
5 checks passed
@tomchristie tomchristie deleted the cleanup-url-signature branch July 23, 2024 14:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactor Issues and PRs related to code refactoring
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants