Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for __class__ (0.05 sec)

  1. fastapi/security/http.py

            description: Optional[str] = None,
            auto_error: bool = True,
        ):
            self.model = HTTPBaseModel(scheme=scheme, description=description)
            self.scheme_name = scheme_name or self.__class__.__name__
            self.auto_error = auto_error
    
        async def __call__(
            self, request: Request
        ) -> Optional[HTTPAuthorizationCredentials]:
            authorization = request.headers.get("Authorization")
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Sep 19 09:47:28 UTC 2024
    - 13.2K bytes
    - Viewed (0)
  2. fastapi/params.py

            use_kwargs = {k: v for k, v in kwargs.items() if v is not _Unset}
    
            super().__init__(**use_kwargs)
    
        def __repr__(self) -> str:
            return f"{self.__class__.__name__}({self.default})"
    
    
    class Path(Param):
        in_ = ParamTypes.path
    
        def __init__(
            self,
            default: Any = ...,
            *,
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Sep 06 18:06:20 UTC 2024
    - 27.5K bytes
    - Viewed (0)
  3. fastapi/dependencies/utils.py

                )
                assert (
                    field_info.default is Undefined or field_info.default is RequiredParam
                ), (
                    f"`{field_info.__class__.__name__}` default value cannot be set in"
                    f" `Annotated` for {param_name!r}. Set the default value with `=` instead."
                )
                if value is not inspect.Signature.empty:
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 27 21:46:26 UTC 2024
    - 34.7K bytes
    - Viewed (0)
  4. fastapi/security/oauth2.py

                ),
            ] = True,
        ):
            self.model = OAuth2Model(
                flows=cast(OAuthFlowsModel, flows), description=description
            )
            self.scheme_name = scheme_name or self.__class__.__name__
            self.auto_error = auto_error
    
        async def __call__(self, request: Request) -> Optional[str]:
            authorization = request.headers.get("Authorization")
            if not authorization:
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Wed Oct 23 18:30:18 UTC 2024
    - 21.1K bytes
    - Viewed (0)
  5. ci/official/containers/ml_build/builder.devtoolset/glibc2.17-inline.patch

        inline semantics, unless -fgnu89-inline is used.  */
    -#if (!defined __cplusplus || __GNUC_PREREQ (4,3)) && defined __GNUC__
    +#if (!defined __cplusplus || __GNUC_PREREQ (4,3) || defined __clang__) && defined __GNUC__
     # if defined __GNUC_STDC_INLINE__ || defined __cplusplus
     #  define __extern_inline extern __inline __attribute__ ((__gnu_inline__))
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Tue Sep 24 20:45:58 UTC 2024
    - 663 bytes
    - Viewed (0)
  6. src/cmd/cgo/gcc.go

    			key = line[0:spaceIndex]
    			val = strings.TrimSpace(line[spaceIndex:])
    		} else {
    			key = line[0:tabIndex]
    			val = strings.TrimSpace(line[tabIndex:])
    		}
    
    		if key == "__clang__" {
    			gccIsClang = true
    		}
    
    		if n := f.Name[key]; n != nil {
    			if *debugDefine {
    				fmt.Fprintf(os.Stderr, "#define %s %s\n", key, val)
    			}
    			n.Define = val
    		}
    	}
    	return gccIsClang
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Wed Sep 18 15:07:34 UTC 2024
    - 97.1K bytes
    - Viewed (0)
Back to top