Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 119 for elif (0.02 seconds)

  1. fastapi/dependencies/utils.py

            dependant.request_param_name = param_name
            return True
        elif lenient_issubclass(type_annotation, WebSocket):
            dependant.websocket_param_name = param_name
            return True
        elif lenient_issubclass(type_annotation, HTTPConnection):
            dependant.http_connection_param_name = param_name
            return True
        elif lenient_issubclass(type_annotation, Response):
    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)
  2. scripts/doc_parsing_utils.py

                        )
                    )
    
            elif in_code_block3:
                if line.startswith("```"):
                    count = len(line) - len(line.lstrip("`"))
                    if count == 3:
                        in_code_block3 = False
                        continue
    
            elif in_code_block4:
                if line.startswith("````"):
    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)
  3. maven-tests/mvnw

    elif [ -z "${MVNW_USERNAME-}" ] && command -v curl >/dev/null; then
      verbose "Found curl ... using curl"
      curl ${__MVNW_QUIET_CURL:+"$__MVNW_QUIET_CURL"} -f -L -o "$TMP_DOWNLOAD_DIR/$distributionUrlName" "$distributionUrl" || die "curl: Failed to fetch $distributionUrl"
    elif set_java_home; then
      verbose "Falling back to use Java to download"
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Thu Sep 25 18:22:49 GMT 2025
    - 10.4K bytes
    - Click Count (0)
  4. fastapi/openapi/utils.py

                example = getattr(field_info, "example", None)
                if openapi_examples:
                    parameter["examples"] = jsonable_encoder(openapi_examples)
                elif example is not _Unset:
                    parameter["example"] = jsonable_encoder(example)
                if getattr(field_info, "deprecated", None):
                    parameter["deprecated"] = True
    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)
  5. scripts/notify_translations.py

            elif pr.state == "closed" or approved_label in label_strs:
                logging.info(f"Already approved or closed PR #{pr.number}")
                if already_done_comment:
                    logging.info(
                        f"This PR #{pr.number} was already marked as done in comment: {already_done_comment.url}"
                    )
                elif already_notified_comment:
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Feb 17 09:59:14 GMT 2026
    - 12.6K bytes
    - Click Count (0)
  6. configure.py

        user_input_origin = get_input(question)
        user_input = user_input_origin.strip().lower()
        if user_input == 'y':
          print(yes_reply)
          var = True
        elif user_input == 'n':
          print(no_reply)
          var = False
        elif not user_input:
          if enabled_by_default:
            print(yes_reply)
            var = True
          else:
            print(no_reply)
            var = False
        else:
    Created: Tue Apr 07 12:39:13 GMT 2026
    - Last Modified: Fri Dec 19 16:32:04 GMT 2025
    - 48.3K bytes
    - Click Count (0)
  7. ci/official/utilities/extract_resultstore_links.py

        # end of the invocation.
        # If there's a failure message, it will be found in-between these two.
    
        if not current_url:
          url_lines['start'] = i
        elif current_url == url:
          url_lines['end'] = i
        else:
          result_store_links[current_url]['next_url'] = i
          url_lines['start'] = i
        current_url = url
    
      previous_end_line = None
    Created: Tue Apr 07 12:39:13 GMT 2026
    - Last Modified: Wed Nov 08 17:50:27 GMT 2023
    - 10.9K bytes
    - Click Count (0)
  8. .teamcity/mvnw

                wget "$jarUrl" -O "$wrapperJarPath"
            else
                wget --http-user=$MVNW_USERNAME --http-password=$MVNW_PASSWORD "$jarUrl" -O "$wrapperJarPath"
            fi
        elif command -v curl > /dev/null; then
            if [ "$MVNW_VERBOSE" = true ]; then
              echo "Found curl ... using curl"
            fi
            if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Wed Feb 26 01:48:39 GMT 2020
    - 9.8K bytes
    - Click Count (0)
  9. scripts/docs.py

                if code_block4_pattern.match(line):
                    in_code_block4 = True
                elif code_block3_pattern.match(line):
                    in_code_block3 = True
            else:
                if in_code_block4 and code_block4_pattern.match(line):
                    in_code_block4 = False
                elif in_code_block3 and code_block3_pattern.match(line):
                    in_code_block3 = False
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 17:46:10 GMT 2026
    - 25.4K bytes
    - Click Count (0)
  10. tests/test_dependency_wrapped.py

            @wraps(func)
            async def gen_wrapper(*args, **kwargs):
                async for item in iterate_in_threadpool(func(*args, **kwargs)):
                    yield item
    
            return gen_wrapper
    
        elif inspect.isasyncgenfunction(func):
    
            @wraps(func)
            async def async_gen_wrapper(*args, **kwargs):
                async for item in func(*args, **kwargs):
                    yield item
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Wed Dec 17 21:25:59 GMT 2025
    - 11.2K bytes
    - Click Count (0)
Back to Top