Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
itssimon committed Nov 15, 2024
1 parent fba67ec commit 40d22b0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/django_ninja_urls.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from typing import Dict

from django.http import HttpRequest
from django.urls import path
from ninja import NinjaAPI, Schema
Expand All @@ -12,7 +14,7 @@ def foo(request: HttpRequest) -> str:


@api.get("/foo/{bar}")
def foo_bar(request: HttpRequest, bar: int) -> dict[str, int]:
def foo_bar(request: HttpRequest, bar: int) -> Dict[str, int]:
return {"foo": bar}


Expand All @@ -21,7 +23,7 @@ class BarRequestBody(Schema):


@api.post("/bar")
def bar(request: HttpRequest, item: BarRequestBody) -> dict[str, str]:
def bar(request: HttpRequest, item: BarRequestBody) -> Dict[str, str]:
return {"bar": item.foo}


Expand Down

0 comments on commit 40d22b0

Please sign in to comment.