The following issues were found
docs_src/python_types/tutorial001.py
2 issues
Line: 1
Column: 1
def get_full_name(first_name, last_name):
full_name = first_name.title() + " " + last_name.title()
return full_name
print(get_full_name("john", "doe"))
Reported by Pylint.
Line: 1
Column: 1
def get_full_name(first_name, last_name):
full_name = first_name.title() + " " + last_name.title()
return full_name
print(get_full_name("john", "doe"))
Reported by Pylint.
docs_src/python_types/tutorial002.py
2 issues
Line: 1
Column: 1
def get_full_name(first_name: str, last_name: str):
full_name = first_name.title() + " " + last_name.title()
return full_name
print(get_full_name("john", "doe"))
Reported by Pylint.
Line: 1
Column: 1
def get_full_name(first_name: str, last_name: str):
full_name = first_name.title() + " " + last_name.title()
return full_name
print(get_full_name("john", "doe"))
Reported by Pylint.
docs_src/python_types/tutorial003.py
2 issues
Line: 1
Column: 1
def get_name_with_age(name: str, age: int):
name_with_age = name + " is this old: " + age
return name_with_age
Reported by Pylint.
Line: 1
Column: 1
def get_name_with_age(name: str, age: int):
name_with_age = name + " is this old: " + age
return name_with_age
Reported by Pylint.
docs_src/python_types/tutorial004.py
2 issues
Line: 1
Column: 1
def get_name_with_age(name: str, age: int):
name_with_age = name + " is this old: " + str(age)
return name_with_age
Reported by Pylint.
Line: 1
Column: 1
def get_name_with_age(name: str, age: int):
name_with_age = name + " is this old: " + str(age)
return name_with_age
Reported by Pylint.
docs_src/python_types/tutorial005.py
2 issues
Line: 1
Column: 1
def get_items(item_a: str, item_b: int, item_c: float, item_d: bool, item_e: bytes):
return item_a, item_b, item_c, item_d, item_d, item_e
Reported by Pylint.
Line: 1
Column: 1
def get_items(item_a: str, item_b: int, item_c: float, item_d: bool, item_e: bytes):
return item_a, item_b, item_c, item_d, item_d, item_e
Reported by Pylint.
docs_src/python_types/tutorial006.py
2 issues
Line: 1
Column: 1
from typing import List
def process_items(items: List[str]):
for item in items:
print(item)
Reported by Pylint.
Line: 4
Column: 1
from typing import List
def process_items(items: List[str]):
for item in items:
print(item)
Reported by Pylint.
tests/test_modules_same_name_body/app/main.py
2 issues
Line: 3
Column: 1
from fastapi import FastAPI
from . import a, b
app = FastAPI()
app.include_router(a.router, prefix="/a")
app.include_router(b.router, prefix="/b")
Reported by Pylint.
Line: 1
Column: 1
from fastapi import FastAPI
from . import a, b
app = FastAPI()
app.include_router(a.router, prefix="/a")
app.include_router(b.router, prefix="/b")
Reported by Pylint.
docs_src/python_types/tutorial007.py
2 issues
Line: 1
Column: 1
from typing import Set, Tuple
def process_items(items_t: Tuple[int, int, str], items_s: Set[bytes]):
return items_t, items_s
Reported by Pylint.
Line: 4
Column: 1
from typing import Set, Tuple
def process_items(items_t: Tuple[int, int, str], items_s: Set[bytes]):
return items_t, items_s
Reported by Pylint.
fastapi/openapi/constants.py
1 issues
Line: 1
Column: 1
METHODS_WITH_BODY = {"GET", "HEAD", "POST", "PUT", "DELETE", "PATCH"}
STATUS_CODES_WITH_NO_BODY = {100, 101, 102, 103, 204, 304}
REF_PREFIX = "#/components/schemas/"
Reported by Pylint.
fastapi/logger.py
1 issues
Line: 1
Column: 1
import logging
logger = logging.getLogger("fastapi")
Reported by Pylint.