Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 837 for Annotations (0.41 seconds)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. src/test/java/org/codelibs/fess/annotation/SecuredTest.java

     */
    package org.codelibs.fess.annotation;
    
    import static org.junit.jupiter.api.Assertions.assertNotSame;
    
    import java.lang.annotation.Documented;
    import java.lang.annotation.ElementType;
    import java.lang.annotation.Inherited;
    import java.lang.annotation.Retention;
    import java.lang.annotation.RetentionPolicy;
    import java.lang.annotation.Target;
    import java.lang.reflect.Method;
    import java.util.Arrays;
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 15.6K bytes
    - Click Count (0)
  6. docs/en/docs/python-types.md

    # Python Types Intro { #python-types-intro }
    
    Python has support for optional "type hints" (also called "type annotations").
    
    These **"type hints"** or annotations are a special syntax that allow declaring the <dfn title="for example: str, int, float, bool">type</dfn> of a variable.
    
    By declaring types for your variables, editors and tools can give you better support.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 11K bytes
    - Click Count (0)
  7. build-logic/dependency-modules/src/main/kotlin/gradlebuild.dependency-modules.gradle.kts

            applyRule<DependencyRemovalByGroupRule>("org.eclipse.jgit:org.eclipse.jgit", setOf("com.googlecode.javaewah"))
    
            // We don't need the extra annotations provided by j2objc
            applyRule<DependencyRemovalByNameRule>("com.google.http-client:google-http-client", setOf("j2objc-annotations"))
    
            // Read capabilities declared in capabilities.json
            readCapabilitiesFromJson()
    
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Thu Mar 26 09:04:32 GMT 2026
    - 9.5K bytes
    - Click Count (0)
  8. src/test/java/org/codelibs/fess/validation/UriTypeTest.java

            final UriType annotation2 = field2.getAnnotation(UriType.class);
    
            assertNotNull(annotation1, "First annotation should exist");
            assertNotNull(annotation2, "Second annotation should exist");
    
            // Annotations with different protocol types should not be equal
            assertFalse("Annotations with different protocol types should not be equal", annotation1.equals(annotation2));
    
            // Test with same field
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 21.3K bytes
    - Click Count (0)
  9. tests/test_pydanticv2_dataclasses_uuid_stringified_annotations.py

    from __future__ import annotations
    
    import uuid
    from dataclasses import dataclass, field
    
    from dirty_equals import IsUUID
    from fastapi import FastAPI
    from fastapi.testclient import TestClient
    from inline_snapshot import snapshot
    
    
    @dataclass
    class Item:
        id: uuid.UUID
        name: str
        price: float
        tags: list[str] = field(default_factory=list)
        description: str | None = None
        tax: float | None = None
    
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Mon Mar 16 10:16:48 GMT 2026
    - 1.1K bytes
    - Click Count (0)
  10. .gitignore

    /*/internal-android-performance-testing/build-android-libs
    test-splits/
    /gradle/verification-keyring.gpg
    
    # Kotlin
    # ------
    .kotlin
    
    # IDEA
    # ----
    !/.idea
    /.idea/*
    # Needed to track entry points and nullability annotations (see https://youtrack.jetbrains.com/issue/IDEA-354114 and https://youtrack.jetbrains.com/issue/IDEA-354115)
    !/.idea/misc.xml
    !/.idea/codeStyles
    !/.idea/inspectionProfiles
    !/.idea/icon.png
    !/.idea/icon_dark.png
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Wed Mar 11 16:15:24 GMT 2026
    - 1.8K bytes
    - Click Count (0)
Back to Top