Skip to content

Commit 3b9b22f

Browse files
committed
chore(python): use "status" from fastapi instead of starlette
See also: - https://fastapi.tiangolo.com/reference/status/ - https://fastapi.tiangolo.com/tutorial/response-status-code/
1 parent 1e4de18 commit 3b9b22f

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

examples/python/fastapi/postgres/routes.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
import psycopg2
22
import psycopg2.extras
33

4-
from fastapi import APIRouter, Depends, HTTPException
5-
6-
from starlette import status
4+
from fastapi import APIRouter, Depends, HTTPException, status
75

86
from db import db_connection
97

src/templates/routes.py.ejs

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
import psycopg2
22
import psycopg2.extras
33

4-
from fastapi import APIRouter, Depends, HTTPException
5-
6-
from starlette import status
4+
<%# https://fastapi.tiangolo.com/reference/status/ -%>
5+
from fastapi import APIRouter, Depends, HTTPException, status
76
87
from db import db_connection
98

0 commit comments

Comments
 (0)