Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for startsWith (0.45 sec)

  1. docs/en/docs/js/custom.js

                        } else if (line.startsWith(promptLiteralStart)) {
                            saveBuffer();
                            const value = line.replace(promptLiteralStart, "").trimEnd();
                            useLines.push({
                                type: "input",
                                value: value
                            });
                        } else if (line.startsWith("// ")) {
                            saveBuffer();
    JavaScript
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat May 08 17:50:56 GMT 2021
    - 6.6K bytes
    - Viewed (0)
  2. scripts/docs.py

        lang = lang.lower()
        return lang
    
    
    def complete_existing_lang(incomplete: str):
        lang_path: Path
        for lang_path in get_lang_paths():
            if lang_path.is_dir() and lang_path.name.startswith(incomplete):
                yield lang_path.name
    
    
    @app.callback()
    def callback() -> None:
        if is_mkdocs_insiders():
            os.environ["INSIDERS_FILE"] = "../en/mkdocs.insiders.yml"
    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)
  3. scripts/mkdocs_hooks.py

            for excluded_section in non_traslated_sections:
                if page.file.src_path.startswith(excluded_section):
                    return markdown
            missing_translation_content = get_missing_translation_content(config.docs_dir)
            header = ""
            body = markdown
            if markdown.startswith("#"):
                header, _, body = markdown.partition("\n\n")
    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)
  4. docs_src/generate_clients/tutorial004.js

            if (operation.tags && operation.tags.length > 0) {
              const tag = operation.tags[0]
              const operationId = operation.operationId
              const toRemove = `${tag}-`
              if (operationId.startsWith(toRemove)) {
                const newOperationId = operationId.substring(toRemove.length)
                operation.operationId = newOperationId
              }
            }
          }
        }
    
        await fs.promises.writeFile(
    JavaScript
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Mar 14 11:40:05 GMT 2024
    - 1K bytes
    - Viewed (0)
  5. fastapi/encoders.py

            for key, value in obj.items():
                if (
                    (
                        not sqlalchemy_safe
                        or (not isinstance(key, str))
                        or (not key.startswith("_sa"))
                    )
                    and (value is not None or not exclude_none)
                    and key in allowed_keys
                ):
                    encoded_key = jsonable_encoder(
                        key,
    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)
  6. .github/actions/notify-translations/app/main.py

        pr = repo.get_pull(github_event.pull_request.number)
        label_strs = {label.name for label in pr.get_labels()}
        langs = []
        for label in label_strs:
            if label.startswith("lang-") and not label == lang_all_label:
                langs.append(label[5:])
        logging.info(f"PR #{pr.number} has labels: {label_strs}")
        if not langs or lang_all_label not in label_strs:
    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)
  7. fastapi/_compat.py

    from typing_extensions import Annotated, Literal, get_args, get_origin
    
    # Reassign variable to make it reexported for mypy
    PYDANTIC_VERSION = P_VERSION
    PYDANTIC_V2 = PYDANTIC_VERSION.startswith("2.")
    
    
    sequence_annotation_to_type = {
        Sequence: list,
        List: list,
        list: list,
        Tuple: tuple,
        tuple: tuple,
        Set: set,
        set: set,
        FrozenSet: frozenset,
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 22.6K bytes
    - Viewed (0)
  8. fastapi/routing.py

                default=default,
                on_startup=on_startup,
                on_shutdown=on_shutdown,
                lifespan=lifespan,
            )
            if prefix:
                assert prefix.startswith("/"), "A path prefix must start with '/'"
                assert not prefix.endswith(
                    "/"
                ), "A path prefix must not end with '/', as the routes will start with '/'"
            self.prefix = prefix
    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)
Back to top