Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for colour (0.22 sec)

  1. fastapi/security/oauth2.py

            return data
        ```
    
        Note that for OAuth2 the scope `items:read` is a single scope in an opaque string.
        You could have custom internal logic to separate it by colon caracters (`:`) or
        similar, and get the two parts `items` and `read`. Many applications do that to
        group and organize permissions, you could do it as well in your application, just
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Apr 02 02:48:51 GMT 2024
    - 21.1K bytes
    - Viewed (1)
  2. scripts/docs.py

        new_index_content = f"{missing_translation_snippet}\n\n{en_index_content}"
        new_index_path.write_text(new_index_content, encoding="utf-8")
        typer.secho(f"Successfully initialized: {new_path}", color=typer.colors.GREEN)
        update_languages()
    
    
    @app.command()
    def build_lang(
        lang: str = typer.Argument(
            ..., callback=lang_callback, autocompletion=complete_existing_lang
        ),
    ) -> None:
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Mon Jan 22 19:26:14 GMT 2024
    - 10.9K bytes
    - Viewed (1)
  3. fastapi/encoders.py

    from types import GeneratorType
    from typing import Any, Callable, Dict, List, Optional, Tuple, Type, Union
    from uuid import UUID
    
    from fastapi.types import IncEx
    from pydantic import BaseModel
    from pydantic.color import Color
    from pydantic.networks import AnyUrl, NameEmail
    from pydantic.types import SecretBytes, SecretStr
    from typing_extensions import Annotated, Doc
    
    from ._compat import PYDANTIC_V2, UndefinedType, Url, _model_dump
    
    
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 21:56:59 GMT 2024
    - 10.8K bytes
    - Viewed (0)
  4. tests/test_tutorial/test_templates/test_tutorial001.py

            b'<h1><a href="http://testserver/items/foo">Item ID: foo</a></h1>'
            in response.content
        )
        response = client.get("/static/styles.css")
        assert response.status_code == 200, response.text
        assert b"color: green;" in response.content
        shutil.rmtree("./templates")
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Jan 11 22:25:37 GMT 2024
    - 910 bytes
    - Viewed (0)
Back to top