Skip to content

Commit

Permalink
Merge branch 'isort-on-docs'
Browse files Browse the repository at this point in the history
  • Loading branch information
baseplate-admin committed Mar 28, 2023
2 parents eed29fd + 68ef40a commit 9159491
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 6 deletions.
1 change: 1 addition & 0 deletions docs/src/index001.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from django.contrib import admin
from django.urls import path

from ninja import NinjaAPI

api = NinjaAPI()
Expand Down
3 changes: 2 additions & 1 deletion docs/src/tutorial/authentication/apikey01.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from ninja.security import APIKeyQuery
from someapp.models import Client

from ninja.security import APIKeyQuery


class ApiKey(APIKeyQuery):
param_name = "api_key"
Expand Down
2 changes: 1 addition & 1 deletion docs/src/tutorial/authentication/global01.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from ninja import NinjaAPI, Form
from ninja import Form, NinjaAPI
from ninja.security import HttpBearer


Expand Down
2 changes: 1 addition & 1 deletion docs/src/tutorial/authentication/multiple01.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from ninja.security import APIKeyQuery, APIKeyHeader
from ninja.security import APIKeyHeader, APIKeyQuery


class AuthCheck:
Expand Down
6 changes: 4 additions & 2 deletions docs/src/tutorial/form/code03.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
from ninja import Form, Schema
from pydantic.fields import ModelField
from typing import Generic, TypeVar

from pydantic.fields import ModelField

from ninja import Form, Schema

PydanticField = TypeVar("PydanticField")


Expand Down
3 changes: 2 additions & 1 deletion docs/src/tutorial/path/code010.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import datetime
from ninja import Schema, Path

from ninja import Path, Schema


class PathDate(Schema):
Expand Down

0 comments on commit 9159491

Please sign in to comment.