Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 740 for isInstance (0.06 seconds)

  1. fastapi/encoders.py

                sqlalchemy_safe=sqlalchemy_safe,
            )
        if isinstance(obj, Enum):
            return obj.value
        if isinstance(obj, PurePath):
            return str(obj)
        if isinstance(obj, (str, int, float, type(None))):
            return obj
        if isinstance(obj, PydanticUndefinedType):
            return None
        if isinstance(obj, dict):
            encoded_dict = {}
            allowed_keys = set(obj.keys())
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Mar 15 11:44:39 GMT 2026
    - 10.9K bytes
    - Click Count (0)
  2. fastapi/dependencies/utils.py

            and field_annotation_is_sequence(field.field_info.annotation)
            and isinstance(values, (ImmutableMultiDict, Headers))
        ):
            value = values.getlist(alias)
        else:
            value = values.get(alias, None)
        if (
            value is None
            or (
                isinstance(field.field_info, params.Form)
                and isinstance(value, str)  # For type checks
                and value == ""
            )
    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)
  3. fastapi/openapi/utils.py

        request_fields_from_routes: list[ModelField] = []
        callback_flat_models: list[ModelField] = []
        for route in routes:
            if not isinstance(route, routing.APIRoute):
                continue
            if route.include_in_schema:
                if route.body_field:
                    assert isinstance(route.body_field, ModelField), (
                        "A request body must be a Pydantic Field"
                    )
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Mar 15 11:44:39 GMT 2026
    - 25.6K bytes
    - Click Count (0)
  4. scripts/doc_parsing_utils.py

                    HTML_ATTR_RE, link_open_tag
                ):
                    assert isinstance(attr_name, str)
                    assert isinstance(attr_quote, str)
                    assert isinstance(attr_value, str)
                    attributes.append(
                        HTMLLinkAttribute(
                            name=attr_name, quote=attr_quote, value=attr_value
                        )
                    )
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 17:37:41 GMT 2026
    - 23.5K bytes
    - Click Count (0)
  5. android/guava/src/com/google/common/collect/FluentIterable.java

       * This does perform a little more work than necessary, so another option is to insert an
       * unchecked cast at some later point:
       *
       * {@snippet :
       * @SuppressWarnings("unchecked") // safe because of ::isInstance check
       * ImmutableList<NewType> result =
       *     (ImmutableList) stream.filter(NewType.class::isInstance).collect(toImmutableList());
       * }
       */
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Apr 02 14:49:41 GMT 2026
    - 34.7K bytes
    - Click Count (0)
  6. guava/src/com/google/common/collect/FluentIterable.java

       * This does perform a little more work than necessary, so another option is to insert an
       * unchecked cast at some later point:
       *
       * {@snippet :
       * @SuppressWarnings("unchecked") // safe because of ::isInstance check
       * ImmutableList<NewType> result =
       *     (ImmutableList) stream.filter(NewType.class::isInstance).collect(toImmutableList());
       * }
       */
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Apr 02 14:49:41 GMT 2026
    - 34.7K bytes
    - Click Count (0)
  7. fastapi/params.py

                    stacklevel=4,
                )
            current_json_schema_extra = json_schema_extra or extra
            kwargs["deprecated"] = deprecated
    
            if serialization_alias in (_Unset, None) and isinstance(alias, str):
                serialization_alias = alias
            if validation_alias in (_Unset, None):
                validation_alias = alias
            kwargs.update(
                {
    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)
  8. fastapi/_compat/v2.py

            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:
            sa = self.field_info.serialization_alias
            return sa or 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)
  9. MIGRATION.md

    fess_docs = []
    for doc in solr_data['response']['docs']:
        fess_doc = {
            "url": doc.get("id", ""),
            "title": doc.get("title", [""])[0] if isinstance(doc.get("title"), list) else doc.get("title", ""),
            "content": doc.get("content", [""])[0] if isinstance(doc.get("content"), list) else doc.get("content", ""),
            "mimetype": "text/html",
            "filetype": "html",
            # Map other fields
        }
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Nov 06 12:40:11 GMT 2025
    - 23.2K bytes
    - Click Count (0)
  10. android/guava/src/com/google/common/collect/Iterables.java

       * This does perform a little more work than necessary, so another option is to insert an
       * unchecked cast at some later point:
       *
       * {@snippet :
       * @SuppressWarnings("unchecked") // safe because of ::isInstance check
       * ImmutableList<NewType> result =
       *     (ImmutableList) stream.filter(NewType.class::isInstance).collect(toImmutableList());
       * }
       */
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Sep 16 18:35:28 GMT 2025
    - 43.8K bytes
    - Click Count (0)
Back to Top