Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions blacksheep/messages.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ from .contents import Content, FormPart
from .cookies import Cookie
from .headers import Headers, HeaderType
from .sessions import Session
from .settings import json as json_plugin
from .settings.json import json_settings
from .url import URL

class Message:
Expand Down Expand Up @@ -49,7 +49,7 @@ class Message:
def declares_json(self) -> bool: ...
def declares_xml(self) -> bool: ...
async def files(self, name: Optional[str] = None) -> List[FormPart]: ...
async def json(self, loads: Callable[[str], Any] = json_plugin.loads) -> Any: ...
async def json(self, loads: Callable[[str], Any] = json_settings.loads) -> Any: ...
def has_body(self) -> bool: ...
@property
def charset(self) -> str: ...
Expand Down
2 changes: 1 addition & 1 deletion blacksheep/server/normalization.py
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ def _get_parameter_binder(
return QueryBinder(annotation, name, True, required=not is_root_optional)

# 5. is request user?
if annotation is User or annotation is Identity:
if issubclass(annotation, Identity):
return IdentityBinder(
annotation, name, implicit=True, required=not is_root_optional
)
Expand Down
Loading