Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for wang (0.18 sec)

  1. scripts/docs.py

    
    def get_lang_paths() -> List[Path]:
        return sorted(docs_path.iterdir())
    
    
    def lang_callback(lang: Optional[str]) -> Union[str, None]:
        if lang is None:
            return None
        lang = lang.lower()
        return lang
    
    
    def complete_existing_lang(incomplete: str):
        lang_path: Path
        for lang_path in get_lang_paths():
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Mon Jan 22 19:26:14 GMT 2024
    - 10.9K bytes
    - Viewed (1)
  2. fastapi/openapi/docs.py

        You normally don't need to use or change this.
        """
        # copied from https://github.com/swagger-api/swagger-ui/blob/v4.14.0/dist/oauth2-redirect.html
        html = """
        <!doctype html>
        <html lang="en-US">
        <head>
            <title>Swagger UI: OAuth2 Redirect</title>
        </head>
        <body>
        <script>
            'use strict';
            function run () {
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Tue Apr 02 02:48:51 GMT 2024
    - 10.1K bytes
    - Viewed (0)
  3. fastapi/applications.py

                    You would use it, for example, if your application is served from
                    different domains and you want to use the same Swagger UI in the
                    browser to interact with each of them (instead of having multiple
                    browser tabs open). Or if you want to leave fixed the possible URLs.
    
                    If the servers `list` is not provided, or is an empty `list`, the
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Tue Apr 02 02:48:51 GMT 2024
    - 172.2K bytes
    - Viewed (0)
  4. scripts/mkdocs_hooks.py

        available_langs = get_mkdocs_material_langs()
        dir_path = Path(config.docs_dir)
        lang = dir_path.parent.name
        if lang in available_langs:
            config.theme["language"] = lang
        if not (config.site_url or "").endswith(f"{lang}/") and not lang == "en":
            config.site_url = f"{config.site_url}{lang}/"
        return config
    
    
    def resolve_file(*, item: str, files: Files, config: MkDocsConfig) -> None:
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Tue Oct 24 20:26:06 GMT 2023
    - 5.1K bytes
    - Viewed (0)
  5. fastapi/security/open_id_connect_url.py

                    is not available, instead of erroring out, the dependency result will
                    be `None`.
    
                    This is useful when you want to have optional authentication.
    
                    It is also useful when you want to have authentication that can be
                    provided in one of multiple optional ways (for example, with OpenID
                    Connect or in a cookie).
                    """
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Tue Apr 02 02:48:51 GMT 2024
    - 2.7K bytes
    - Viewed (0)
  6. fastapi/encoders.py

                the output should use the alias names (when provided) or the Python
                attribute names. In an API, if you set an alias, it's probably because you
                want to use it in the result, so you probably want to leave this set to
                `True`.
                """
            ),
        ] = True,
        exclude_unset: Annotated[
            bool,
            Doc(
                """
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 21:56:59 GMT 2024
    - 10.8K bytes
    - Viewed (0)
  7. configure.py

      elif is_windows():
        default_cc_opt_flags = '/arch:AVX'
      else:
        # On all other platforms, no longer use `-march=native` as this can result
        # in instructions that are too modern being generated. Users that want
        # maximum performance should compile TF in their environment and can pass
        # `-march=native` there.
        # See https://github.com/tensorflow/tensorflow/issues/45744 and duplicates
    Python
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 18:25:36 GMT 2024
    - 53.8K bytes
    - Viewed (0)
  8. .github/actions/notify-translations/app/main.py

        lang_to_discussion_map: Dict[str, AllDiscussionsDiscussionNode] = {}
        for discussion in discussions:
            for edge in discussion.labels.edges:
                label = edge.node.name
                if label.startswith("lang-") and not label == lang_all_label:
                    lang = label[5:]
                    lang_to_discussion_map[lang] = discussion
        logging.debug(f"Using translations map: {lang_to_discussion_map}")
    
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Wed Sep 27 23:01:46 GMT 2023
    - 12.4K bytes
    - Viewed (0)
  9. fastapi/routing.py

                    exclude fields set to `None`.
    
                    This is much simpler (less smart) than `response_model_exclude_unset`
                    and `response_model_exclude_defaults`. You probably want to use one of
                    those two instead of this one, as those allow returning `None` values
                    when it makes sense.
    
                    Read more about it in the
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Tue Apr 02 02:48:51 GMT 2024
    - 170.1K bytes
    - Viewed (0)
  10. .github/actions/people/app/main.py

                    authors[review.author.login] = review.author
                    pr_reviewers.add(review.author.login)
                    for label in pr.labels.nodes:
                        if label.name == "lang-all":
                            translation_reviewers[review.author.login] += 1
                            break
            for reviewer in pr_reviewers:
                reviewers[reviewer] += 1
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Tue Mar 26 17:38:21 GMT 2024
    - 19.2K bytes
    - Viewed (1)
Back to top