You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Dependency Injection do not have exception when constructors don't return object. It be nice if constructors given exception warning when no returned object to warn ahead. But if no-return constructor on dependency injection is expected is also reasonable pattern because we could make if for example if context == null: do something. But i believe first pattern is better for other not stumble around null objects
To Reproduce
@dataclassclassContextInjection:
request: Request@classmethodasyncdefparse_htmx(cls, request: Request):
# I do something on header here for examplerequest.headers["header-X"] =truecls(request)
Environment (please complete the following information):
OS: Linux Mint
Browser Firefox
The text was updated successfully, but these errors were encountered:
Describe the bug
Dependency Injection do not have exception when constructors don't return object. It be nice if constructors given exception warning when no returned object to warn ahead. But if no-return constructor on dependency injection is expected is also reasonable pattern because we could make if for example
if context == null: do something
. But i believe first pattern is better for other not stumble around null objectsTo Reproduce
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: