- Sort Score
- Num 10 results
- Language All
Results 21 - 30 of 359 for _self (0.06 seconds)
-
tests/test_dependency_yield_scope.py
SessionRequestDep = Annotated[Session, Depends(dep_session, scope="request")] SessionDefaultDep = Annotated[Session, Depends(dep_session)] class NamedSession: def __init__(self, name: str = "default") -> None: self.name = name self.open = True def get_named_session(session: SessionRequestDep, session_b: SessionDefaultDep) -> Any: assert session is session_b named_session = NamedSession(name="named")
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Wed Dec 17 21:25:59 GMT 2025 - 6.7K bytes - Click Count (0) -
fastapi/security/http.py
] = True, ): self.model = HTTPBaseModel(scheme="basic", description=description) self.scheme_name = scheme_name or self.__class__.__name__ self.realm = realm self.auto_error = auto_error def make_authenticate_headers(self) -> dict[str, str]: if self.realm: return {"WWW-Authenticate": f'Basic realm="{self.realm}"'} return {"WWW-Authenticate": "Basic"}Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Mon Mar 16 10:16:48 GMT 2026 - 13.1K bytes - Click Count (0) -
docs/sts/client_grants/__init__.py
CANONICAL_NAME = 'AssumeRoleClientGrants' def __init__(self, cid, csec, idp_ep='http://localhost:8080/auth/realms/minio/protocol/openid-connect/token', sts_ep='http://localhost:9000'): self.cid = cid self.csec = csec self.idp_ep = idp_ep self.sts_ep = sts_ep # Load CA certificates from SSL_CERT_FILE file if set
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Fri Apr 23 18:58:53 GMT 2021 - 4.6K bytes - Click Count (0) -
docs/sts/client_grants/sts_element.py
) def findall(self, name): """Similar to ElementTree.Element.findall() """ return [ STSElement(self.root_name, elem) for elem in self.element.findall('sts:{}'.format(name), _STS_NS) ] def find(self, name): """Similar to ElementTree.Element.find() """ elt = self.element.find('sts:{}'.format(name), _STS_NS)Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Fri Apr 23 18:58:53 GMT 2021 - 2.5K bytes - Click Count (0) -
compat/maven-embedder/src/main/java/org/apache/maven/cli/internal/extension/model/CoreExtension.java
*/ private String version; /** * The class loading strategy: 'self-first' (the default), * 'parent-first' (loads classes from the parent, then from the * extension) or 'plugin' (follows the rules from extensions * defined as plugins). */ private String classLoadingStrategy = "self-first"; // -----------/ // - Methods -/ // -----------/ /**Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Mon Oct 27 13:24:03 GMT 2025 - 4.5K bytes - Click Count (0) -
fastapi/applications.py
), ], ) -> None: self.debug = debug self.title = title self.summary = summary self.description = description self.version = version self.terms_of_service = terms_of_service self.contact = contact self.license_info = license_info self.openapi_url = openapi_url self.openapi_tags = openapi_tagsCreated: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Wed Apr 01 16:16:24 GMT 2026 - 178.6K bytes - Click Count (0) -
fastapi/_compat/v2.py
@property def alias(self) -> str: a = self.field_info.alias return a if a is not None else self.name @property def validation_alias(self) -> str | None: va = self.field_info.validation_alias if isinstance(va, str) and va: return va return None @property def serialization_alias(self) -> str | None:Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Mar 15 11:44:39 GMT 2026 - 16.7K bytes - Click Count (0) -
tests/test_arbitrary_types.py
from pydantic import ( BaseModel, ConfigDict, PlainSerializer, TypeAdapter, WithJsonSchema, ) class FakeNumpyArray: def __init__(self): self.data = [1.0, 2.0, 3.0] FakeNumpyArrayPydantic = Annotated[ FakeNumpyArray, WithJsonSchema(TypeAdapter(list[float]).json_schema()), PlainSerializer(lambda v: v.data), ]
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sat Dec 20 15:55:38 GMT 2025 - 3.8K bytes - Click Count (0) -
fastapi/security/api_key.py
class APIKeyBase(SecurityBase): model: APIKey def __init__( self, location: APIKeyIn, name: str, description: str | None, scheme_name: str | None, auto_error: bool, ): self.auto_error = auto_error self.model: APIKey = APIKey( **{"in": location}, # ty: ignore[invalid-argument-type] name=name,
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Mar 15 11:44:39 GMT 2026 - 9.6K bytes - Click Count (1) -
docs_src/websockets_/tutorial003_py310.py
""" class ConnectionManager: def __init__(self): self.active_connections: list[WebSocket] = [] async def connect(self, websocket: WebSocket): await websocket.accept() self.active_connections.append(websocket) def disconnect(self, websocket: WebSocket): self.active_connections.remove(websocket) async def send_personal_message(self, message: str, websocket: WebSocket):Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Feb 27 12:34:37 GMT 2026 - 2.5K bytes - Click Count (0)