コード例 #1
0
 def __init__(
     self,
     *,
     bearerFormat: str = None,
     scheme_name: str = None,
     auto_error: bool = True,
 ):
     self.model = HTTPBearerModel(bearerFormat=bearerFormat)
     self.scheme_name = scheme_name or self.__class__.__name__
     self.auto_error = auto_error
コード例 #2
0
 def __init__(   # pylint: disable=super-init-not-called
         self,
         *,
         bearer_format: Optional[str] = None,
         scheme_name: Optional[str] = None,
         description: Optional[str] = None,
         auto_error: bool = True,
 ):
     self.model = HTTPBearerModel(bearerFormat=bearer_format, description=description)
     self.scheme_name = scheme_name or self.__class__.__name__
     self.auto_error = auto_error
コード例 #3
0
ファイル: http.py プロジェクト: joshis1/Python
 def __init__(
     self,
     *,
     bearerFormat: Optional[str] = None,
     scheme_name: Optional[str] = None,
     description: Optional[str] = None,
     auto_error: bool = True,
 ):
     self.model = HTTPBearerModel(bearerFormat=bearerFormat,
                                  description=description)
     self.scheme_name = scheme_name or self.__class__.__name__
     self.auto_error = auto_error
コード例 #4
0
ファイル: http.py プロジェクト: mariacamilagl/fastapi
 def __init__(self, *, bearerFormat: str = None, scheme_name: str = None):
     self.model = HTTPBearerModel(bearerFormat=bearerFormat)
     self.scheme_name = scheme_name or self.__class__.__name__