Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 21 - 30 of 45 for __none__ (0.05 seconds)

  1. ci/official/utilities/rename_and_verify_wheels.sh

      "$python" -c 'import tensorflow as tf; t1=tf.constant([1,2,3,4]); t2=tf.constant([5,6,7,8]); print(tf.add(t1,t2).shape)'
      "$python" -c 'import sys; import tensorflow as tf; sys.exit(0 if "keras" in tf.keras.__name__ else 1)'
    fi
    # Import tf nightly wheel built with numpy2 from PyPI in numpy1 env for testing.
    # This aims to maintain TF compatibility with NumPy 1.x until 2025 b/361369076.
    if [[ "$TFCI_WHL_NUMPY_VERSION" == 1 ]]; then
    Created: Tue Dec 30 12:39:10 GMT 2025
    - Last Modified: Mon Sep 22 21:39:32 GMT 2025
    - 4.4K bytes
    - Click Count (0)
  2. docs_src/wsgi/tutorial001_py39.py

    from fastapi import FastAPI
    from fastapi.middleware.wsgi import WSGIMiddleware
    from flask import Flask, request
    from markupsafe import escape
    
    flask_app = Flask(__name__)
    
    
    @flask_app.route("/")
    def flask_main():
        name = request.args.get("name", "World")
        return f"Hello, {escape(name)} from Flask!"
    
    
    app = FastAPI()
    
    
    @app.get("/v2")
    def read_main():
        return {"message": "Hello World"}
    
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 443 bytes
    - Click Count (0)
  3. fastapi/_compat/v2.py

            ModelField(
                field_info=FieldInfo(annotation=model),
                name=model.__name__,
                mode="validation",
            )
            for model in flat_validation_models
        ]
        flat_serialization_model_fields = [
            ModelField(
                field_info=FieldInfo(annotation=model),
                name=model.__name__,
                mode="serialization",
            )
            for model in flat_serialization_models
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 12:54:56 GMT 2025
    - 19.1K bytes
    - Click Count (0)
  4. tests/test_exception_handlers.py

        with pytest.raises(ValueError) as exc_info:
            client.get("/dependency-with-yield")
        last_frame = exc_info.traceback[-1]
        assert str(last_frame.path) == __file__
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Tue Dec 03 22:37:12 GMT 2024
    - 2.4K bytes
    - Click Count (0)
  5. scripts/sponsors.py

        logging.info("Creating PR")
        pr = repo.create_pull(title=message, body=message, base="master", head=branch_name)
        logging.info(f"Created PR: {pr.number}")
        logging.info("Finished")
    
    
    if __name__ == "__main__":
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Tue Dec 16 12:34:01 GMT 2025
    - 6.1K bytes
    - Click Count (0)
  6. fastapi/security/open_id_connect_url.py

                ),
            ] = True,
        ):
            self.model = OpenIdConnectModel(
                openIdConnectUrl=openIdConnectUrl, description=description
            )
            self.scheme_name = scheme_name or self.__class__.__name__
            self.auto_error = auto_error
    
        def make_not_authenticated_error(self) -> HTTPException:
            return HTTPException(
                status_code=HTTP_401_UNAUTHORIZED,
                detail="Not authenticated",
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 21:25:59 GMT 2025
    - 3.1K bytes
    - Click Count (0)
  7. scripts/topic_repos.py

        logging.info("Creating PR")
        pr = r.create_pull(title=message, body=message, base="master", head=branch_name)
        logging.info(f"Created PR: {pr.number}")
        logging.info("Finished")
    
    
    if __name__ == "__main__":
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Tue Dec 16 12:34:01 GMT 2025
    - 2.7K bytes
    - Click Count (0)
  8. ci/official/utilities/convert_msys_paths_to_win_paths.py

      var_str = '\n'.join(f'{k}="{v}"'
                          for k, v in converted_vars.items())
      # The string can then be piped into `source`, to re-set the
      # 'converted' variables.
      print(var_str)
    
    
    if __name__ == '__main__':
      parser = argparse.ArgumentParser(description=(
          'Convert MSYS paths in environment variables to Windows paths.'))
      parser.add_argument('--blacklist',
                          nargs='*',
    Created: Tue Dec 30 12:39:10 GMT 2025
    - Last Modified: Wed Aug 07 23:01:25 GMT 2024
    - 2.5K bytes
    - Click Count (0)
  9. scripts/deploy_docs_status.py

            ):
                comment.edit(message)
                break
        else:
            issue.create_comment(message)
    
        logging.info("Finished")
    
    
    if __name__ == "__main__":
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Tue Sep 30 05:56:53 GMT 2025
    - 4.4K bytes
    - Click Count (0)
  10. tests/test_tutorial/test_security/test_tutorial004.py

            "full_name": "Alice Wonderson",
            "email": "******@****.***",
            "hashed_password": mod.get_password_hash("secretalice"),
            "disabled": True,
        }
        with patch.dict(f"{mod.__name__}.fake_users_db", {"alice": alice_user_data}):
            access_token = get_access_token(
                username="alice", password="secretalice", client=client
            )
            response = client.get(
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Fri Dec 26 10:43:02 GMT 2025
    - 13.3K bytes
    - Click Count (0)
Back to Top