- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 972 for Annotations (0.07 seconds)
-
architecture/standards/0008-use-nullaway.md
Use `Objects.requireNonNull` statement or `Preconditions` rather than `assert` or `@SuppressWarning` annotation to suppress if possible. For gradual adoption, enable checks project-by-project. Do not rely on `@NullMarked` annotations. Only enable checks for a project if all its dependencies have checks enabled, in order to avoid back-and-forth when refining the annotations.
Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Thu Mar 05 12:39:41 GMT 2026 - 4K bytes - Click Count (0) -
docs/en/docs/tutorial/response-model.md
### Invalid Return Type Annotations { #invalid-return-type-annotations } But when you return some other arbitrary object that is not a valid Pydantic type (e.g. a database object) and you annotate it like that in the function, FastAPI will try to create a Pydantic response model from that type annotation, and will fail.Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 05 18:13:19 GMT 2026 - 15.5K bytes - Click Count (0) -
tests/test_security_oauth2.py
} } ) class User(BaseModel): username: str # Here we use string annotations to test them def get_current_user(oauth_header: "str" = Security(reusable_oauth2)): user = User(username=oauth_header) return user @app.post("/login") # Here we use string annotations to test them def login(form_data: "OAuth2PasswordRequestFormStrict" = Depends()): return form_dataCreated: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Feb 08 10:18:38 GMT 2026 - 9.8K bytes - Click Count (0) -
docs/fr/llm-prompt.md
- the documentation: la documentation - Exclude from OpenAPI: Exclusion d'OpenAPI - framework: framework (do not translate to cadre) - performance: performance - type hints: annotations de type - type annotations: annotations de type - autocomplete: autocomplétion - autocompletion: autocomplétion - the request (what the client sends to the server): la requête
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Jan 16 11:57:08 GMT 2026 - 3.6K bytes - Click Count (0) -
docs/en/docs/advanced/dataclasses.md
7. Here the `response_model` is using a type annotation of a list of `Author` dataclasses. Again, you can combine `dataclasses` with standard type annotations. 8. Notice that this *path operation function* uses regular `def` instead of `async def`. As always, in FastAPI you can combine `def` and `async def` as needed.Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 05 18:13:19 GMT 2026 - 4K bytes - Click Count (0) -
docs/en/docs/how-to/graphql.md
If you need or want to work with **GraphQL**, [**Strawberry**](https://strawberry.rocks/) is the **recommended** library as it has the design closest to **FastAPI's** design, it's all based on **type annotations**. Depending on your use case, you might prefer to use a different library, but if you asked me, I would probably suggest you try **Strawberry**. Here's a small preview of how you could integrate Strawberry with FastAPI:
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 05 18:13:19 GMT 2026 - 2.7K bytes - Click Count (0) -
docs/de/llm-prompt.md
Example: Source (English): ``` ## Type hints and annotations { #type-hints-and-annotations } ``` Translate with (German) - notice the hyphen: ``` ## Typhinweise und -annotationen { #type-hints-and-annotations } ``` Do NOT translate with (German) - notice the dash: ``` ## Typhinweise und –annotationen { #type-hints-and-annotations } ```Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Mon Dec 29 18:54:20 GMT 2025 - 9.8K bytes - Click Count (0) -
tests/test_stringified_annotation_dependency_py314.py
if TYPE_CHECKING: # pragma: no cover class DummyUser: ... @needs_py314 def test_stringified_annotation(): # python3.14: Use forward reference without "from __future__ import annotations" async def get_current_user() -> DummyUser | None: return None app = FastAPI() client = TestClient(app) @app.get("/") async def get(Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Wed Feb 04 13:49:44 GMT 2026 - 711 bytes - Click Count (0) -
guava-gwt/pom.xml
<version>${project.version}</version> </dependency> <!-- We redeclare the j2objc-annotations dependency from `guava`: Our Gradle Module Metadata hides the dependency declared in `guava` from runtime configurations downstream, and GWT uses the runtime configuration for its builds. Thus, GWT doesn't get j2objc-annotations transitively, in contrast to the other deps of `guava`, which it does get transitively.
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Jan 12 15:19:17 GMT 2026 - 18.2K bytes - Click Count (0) -
api/maven-api-di/src/main/java/org/apache/maven/api/di/package-info.java
* under the License. */ /** * A dependency injection framework for Maven that provides JSR-330 style annotations * for managing object lifecycle and dependencies within Maven's build process. * <p> * This package provides a set of annotations that control how objects are created, * managed and injected throughout Maven's execution lifecycle. The framework is designed
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Sat Jan 10 05:49:06 GMT 2026 - 1.7K bytes - Click Count (0)