Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 143 for user$name (0.05 seconds)

  1. docs_src/graphql_/tutorial001_py39.py

    import strawberry
    from fastapi import FastAPI
    from strawberry.fastapi import GraphQLRouter
    
    
    @strawberry.type
    class User:
        name: str
        age: int
    
    
    @strawberry.type
    class Query:
        @strawberry.field
        def user(self) -> User:
            return User(name="Patrick", age=100)
    
    
    schema = strawberry.Schema(query=Query)
    
    
    graphql_app = GraphQLRouter(schema)
    
    app = FastAPI()
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Fri Dec 26 10:43:02 GMT 2025
    - 424 bytes
    - Click Count (0)
  2. tests/test_tutorial/test_python_types/test_tutorial012.py

    from docs_src.python_types.tutorial012_py39 import User
    
    
    def test_user():
        user = User(name="John Doe", age=30)
        assert user.name == "John Doe"
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Fri Dec 26 10:43:02 GMT 2025
    - 177 bytes
    - Click Count (0)
  3. tests/test_tutorial/test_graphql/test_tutorial001.py

    def get_client() -> TestClient:
        return TestClient(app)
    
    
    def test_query(client: TestClient):
        response = client.post("/graphql", json={"query": "{ user { name, age } }"})
        assert response.status_code == 200
        assert response.json() == {"data": {"user": {"name": "Patrick", "age": 100}}}
    
    
    def test_openapi(client: TestClient):
        response = client.get("/openapi.json")
        assert response.status_code == 200
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Fri Dec 26 10:43:02 GMT 2025
    - 2.2K bytes
    - Click Count (0)
  4. scripts/topic_repos.py

            return
        repos_path.write_text(new_repos_content, encoding="utf-8")
        logging.info("Setting up GitHub Actions git user")
        subprocess.run(["git", "config", "user.name", "github-actions[bot]"], check=True)
        subprocess.run(
            ["git", "config", "user.email", "github-actions[bot]@users.noreply.github.com"],
            check=True,
        )
    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)
  5. tests/test_response_model_as_return_annotation.py

        return User(name="John", surname="Doe")
    
    
    @app.get("/no_response_model-no_annotation-return_dict")
    def no_response_model_no_annotation_return_dict():
        return {"name": "John", "surname": "Doe"}
    
    
    @app.get("/response_model-no_annotation-return_same_model", response_model=User)
    def response_model_no_annotation_return_same_model():
        return User(name="John", surname="Doe")
    
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 12:54:56 GMT 2025
    - 47.7K bytes
    - Click Count (0)
  6. .github/workflows/release-branch-cherrypick.yml

          with:
            ref: ${{ github.event.inputs.release_branch }}
        - name: Get some helpful info for formatting
          id: cherrypick
          run: |
              git config --global user.name "TensorFlow Release Automation"
              git config --global user.email "******@****.***"
              git fetch origin master
              git cherry-pick ${{ github.event.inputs.git_commit }}
    Created: Tue Dec 30 12:39:10 GMT 2025
    - Last Modified: Mon Dec 01 09:57:00 GMT 2025
    - 3.1K bytes
    - Click Count (0)
  7. docs/es/docs/tutorial/request-forms.md

    /// info | Información
    
    `Form` es una clase que hereda directamente de `Body`.
    
    ///
    
    /// tip | Consejo
    
    Para declarar bodies de formularios, necesitas usar `Form` explícitamente, porque sin él, los parámetros se interpretarían como parámetros de query o como parámetros de body (JSON).
    
    ///
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Tue Dec 16 16:33:45 GMT 2025
    - 3.1K bytes
    - Click Count (0)
  8. .github/workflows/pre-commit.yml

            continue-on-error: true
          - name: Commit and push changes
            if: env.HAS_SECRETS == 'true'
            run: |
              git config user.name "github-actions[bot]"
              git config user.email "github-actions[bot]@users.noreply.github.com"
              git add -A
              if git diff --staged --quiet; then
                echo "No changes to commit"
              else
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Tue Dec 23 11:17:16 GMT 2025
    - 3K bytes
    - Click Count (0)
  9. scripts/contributors.py

        ]
    
        if not any(updated):
            logging.info("The data hasn't changed, finishing.")
            return
    
        logging.info("Setting up GitHub Actions git user")
        subprocess.run(["git", "config", "user.name", "github-actions[bot]"], check=True)
        subprocess.run(
            ["git", "config", "user.email", "github-actions[bot]@users.noreply.github.com"],
            check=True,
        )
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Tue Dec 16 12:34:01 GMT 2025
    - 8.6K bytes
    - Click Count (0)
  10. scripts/sponsors.py

        )
    
        if not updated:
            logging.info("The data hasn't changed, finishing.")
            return
    
        logging.info("Setting up GitHub Actions git user")
        subprocess.run(["git", "config", "user.name", "github-actions[bot]"], check=True)
        subprocess.run(
            ["git", "config", "user.email", "github-actions[bot]@users.noreply.github.com"],
            check=True,
        )
    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)
Back to Top