-
Notifications
You must be signed in to change notification settings - Fork 2
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
Hints #2
Conversation
There was a problem hiding this 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
There was a problem hiding this 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.
There was a problem hiding this 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): |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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?
src/brackets/mixins/http.py
Outdated
A: TypeAlias = tuple[Any] | ||
K: TypeAlias = dict[str, Any] | ||
_View: TypeAlias = tuple[HttpRequest, tuple[Any], dict[str, Any]] |
There was a problem hiding this comment.
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.
I think I'm ready to release.