Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 848 for annotation (0.07 seconds)

  1. tests/test_response_model_as_return_annotation.py

    
    @app.get("/no_response_model-annotation-return_same_model")
    def no_response_model_annotation_return_same_model() -> User:
        return User(name="John", surname="Doe")
    
    
    @app.get("/no_response_model-annotation-return_exact_dict")
    def no_response_model_annotation_return_exact_dict() -> User:
        return {"name": "John", "surname": "Doe"}
    
    
    @app.get("/no_response_model-annotation-return_invalid_dict")
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Feb 17 09:59:14 GMT 2026
    - 50.3K bytes
    - Click Count (0)
  2. 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)
  3. src/test/java/org/codelibs/fess/validation/CustomSizeTest.java

    package org.codelibs.fess.validation;
    
    import static java.lang.annotation.ElementType.ANNOTATION_TYPE;
    import static java.lang.annotation.ElementType.CONSTRUCTOR;
    import static java.lang.annotation.ElementType.FIELD;
    import static java.lang.annotation.ElementType.METHOD;
    import static java.lang.annotation.ElementType.PARAMETER;
    
    import java.lang.annotation.Annotation;
    import java.lang.annotation.Documented;
    import java.lang.annotation.ElementType;
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 17.4K bytes
    - Click Count (0)
  4. fastapi/_compat/shared.py

            or is_dataclass(annotation)
        )
    
    
    def field_annotation_is_complex(annotation: type[Any] | None) -> bool:
        origin = get_origin(annotation)
        if origin is Union or origin is UnionType:
            return any(field_annotation_is_complex(arg) for arg in get_args(annotation))
    
        if origin is Annotated:
            return field_annotation_is_complex(get_args(annotation)[0])
    
        return (
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Wed Feb 11 18:32:12 GMT 2026
    - 6.9K 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. src/test/java/org/codelibs/fess/validation/CronExpressionTest.java

            assertEquals(0, annotation.groups().length);
            assertEquals(0, annotation.payload().length);
        }
    
        // Test annotation target elements
        @Test
        public void test_annotationTargetElements() {
            CronExpression.class.isAnnotation();
            assertTrue(CronExpression.class.isAnnotation());
    
            // Check that annotation can be applied to METHOD, FIELD, ANNOTATION_TYPE, CONSTRUCTOR, PARAMETER
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 12.5K bytes
    - Click Count (0)
  7. android/pom.xml

                  <annotation>com.google.common.hash.IgnoreJRERequirement</annotation>
                  <annotation>com.google.common.io.IgnoreJRERequirement</annotation>
                  <annotation>com.google.common.math.IgnoreJRERequirement</annotation>
                  <annotation>com.google.common.primitives.IgnoreJRERequirement</annotation>
                  <annotation>com.google.common.reflect.IgnoreJRERequirement</annotation>
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Feb 17 19:12:41 GMT 2026
    - 26.9K bytes
    - Click Count (0)
  8. src/test/java/org/codelibs/fess/validation/CustomSizeValidatorTest.java

            final CustomSize annotation = createBasicAnnotation();
            validator.initialize(annotation);
    
            // Test null context - should return true for null value regardless of context
            assertTrue(validator.isValid(null, null));
        }
    
        @Test
        public void test_initialize_withValidParameters() {
            final CustomSize annotation = createBasicAnnotation();
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 5.4K bytes
    - Click Count (0)
  9. fastapi/dependencies/utils.py

                default=param.default,
                annotation=get_typed_annotation(param.annotation, globalns),
            )
            for param in signature.parameters.values()
        ]
        typed_signature = inspect.Signature(typed_params)
        return typed_signature
    
    
    def get_typed_annotation(annotation: Any, globalns: dict[str, Any]) -> Any:
        if isinstance(annotation, str):
            annotation = ForwardRef(annotation)
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Mar 15 11:44:39 GMT 2026
    - 38.7K bytes
    - Click Count (3)
  10. fastapi/params.py

                serialization_alias = alias
            if validation_alias in (_Unset, None):
                validation_alias = alias
            kwargs.update(
                {
                    "annotation": annotation,
                    "alias_priority": alias_priority,
                    "validation_alias": validation_alias,
                    "serialization_alias": serialization_alias,
                    "strict": strict,
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Mar 15 11:44:39 GMT 2026
    - 25.7K bytes
    - Click Count (0)
Back to Top