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

Hints #2

Merged
merged 37 commits into from
Jan 19, 2024
Merged

Hints #2

merged 37 commits into from
Jan 19, 2024

Conversation

kennethlove
Copy link
Member

I think I'm ready to release.

Copy link
Member Author

@kennethlove kennethlove left a comment

Choose a reason for hiding this comment

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

I dunno about you but I think it's effin' great

Copy link
Member Author

@kennethlove kennethlove left a comment

Choose a reason for hiding this comment

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

I still like it.

Copy link
Member

@chrisjones-brack3t chrisjones-brack3t left a comment

Choose a reason for hiding this comment

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

This was a ton of code. I skimmed a good amount. I didn't see anything off. My only real question was the if type checking stuff.

from django.core.exceptions import ImproperlyConfigured


class BracketsConfigurationError(ImproperlyConfigured):
Copy link
Member

Choose a reason for hiding this comment

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

👍🏻

from .redirects import RedirectMixin

if TYPE_CHECKING: # pragma: no cover
from collections.abc import Callable
from typing import Any, Optional, TypeAlias
from typing import Any
Copy link
Member

Choose a reason for hiding this comment

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

Does this need to be here? I swore the if TYPE_CHECKING: was mainly for preventing circular imports?

Comment on lines 18 to 20
A: TypeAlias = tuple[Any]
K: TypeAlias = dict[str, Any]
_View: TypeAlias = tuple[HttpRequest, tuple[Any], dict[str, Any]]
Copy link
Member

Choose a reason for hiding this comment

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

Eh. I mean I get it but it's kind of ugly.

@kennethlove kennethlove merged commit a12df5a into main Jan 19, 2024
7 checks passed
@kennethlove kennethlove deleted the hints branch January 19, 2024 00:02
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.

None yet

2 participants