Bump fastapi from 0.43.0 to 0.44.0 (#63)

* Bump fastapi from 0.43.0 to 0.44.0

Bumps [fastapi](https://github.com/tiangolo/fastapi) from 0.43.0 to 0.44.0.
- [Release notes](https://github.com/tiangolo/fastapi/releases)
- [Changelog](https://github.com/tiangolo/fastapi/blob/master/docs/history-design-future.md)
- [Commits](https://github.com/tiangolo/fastapi/compare/0.43.0...0.44.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* Fix breaking changes and depreciation following fastapi 0.44.0

* Bump fastapi==0.44.0 in pyproject.toml
This commit is contained in:
dependabot-preview[bot]
2019-11-28 07:33:38 +01:00
committed by François Voron
parent 3cfd402253
commit 59b8f144d7
5 changed files with 21 additions and 18 deletions

View File

@@ -2,8 +2,7 @@ import uuid
from typing import Optional, Type
import pydantic
from pydantic import BaseModel
from pydantic.types import EmailStr
from pydantic import BaseModel, EmailStr
class BaseUser(BaseModel):
@@ -20,11 +19,11 @@ class BaseUser(BaseModel):
def create_update_dict(self):
return self.dict(
skip_defaults=True, exclude={"id", "is_superuser", "is_active"}
exclude_unset=True, exclude={"id", "is_superuser", "is_active"}
)
def create_update_dict_superuser(self):
return self.dict(skip_defaults=True, exclude={"id"})
return self.dict(exclude_unset=True, exclude={"id"})
class BaseUserCreate(BaseUser):

View File

@@ -6,7 +6,7 @@ from enum import Enum, auto
import jwt
from fastapi import APIRouter, Body, Depends, HTTPException
from fastapi.security import OAuth2PasswordRequestForm
from pydantic.types import EmailStr
from pydantic import EmailStr
from starlette import status
from starlette.responses import Response