Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 32 for Parse (0.14 sec)

  1. docs/sts/client_grants/__init__.py

                    raise CredentialRetrievalError(
                        provider=method,
                        error_msg=message % response.status,
                    )
    
                return parse_grants_response(response.data)
    
            def parse_grants_response(data):
                """
                Parser for AssumeRoleWithClientGrants response
    
                :param data: Response data for AssumeRoleWithClientGrants request
    Python
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 23 18:58:53 GMT 2021
    - 4.6K bytes
    - Viewed (1)
  2. .github/actions/notify-translations/app/main.py

        )
        response = AddCommentResponse.parse_obj(data)
        return response.data.addDiscussionComment.comment
    
    
    def update_comment(*, settings: Settings, comment_id: str, body: str):
        data = get_graphql_response(
            settings=settings,
            query=update_comment_mutation,
            comment_id=comment_id,
            body=body,
        )
        response = UpdateCommentResponse.parse_obj(data)
    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)
  3. tests/test_multipart_installation.py

        monkeypatch.delattr("multipart.multipart.parse_options_header", raising=False)
        with pytest.raises(RuntimeError, match=multipart_incorrect_install_error):
            app = FastAPI()
    
            @app.post("/")
            async def root(f: bytes = File()):
                return f  # pragma: nocover
    
    
    def test_incorrect_multipart_installed_multi_form(monkeypatch):
        monkeypatch.delattr("multipart.multipart.parse_options_header", raising=False)
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri May 13 23:38:22 GMT 2022
    - 3.7K bytes
    - Viewed (0)
  4. tests/test_multi_query_errors.py

                        "msg": "Input should be a valid integer, unable to parse string as an integer",
                        "input": "five",
                    },
                    {
                        "type": "int_parsing",
                        "loc": ["query", "q", 1],
                        "msg": "Input should be a valid integer, unable to parse string as an integer",
                        "input": "six",
                    },
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 4.5K bytes
    - Viewed (0)
  5. tests/test_tutorial/test_body_multiple_params/test_tutorial001_an.py

            {
                "detail": [
                    {
                        "type": "int_parsing",
                        "loc": ["path", "item_id"],
                        "msg": "Input should be a valid integer, unable to parse string as an integer",
                        "input": "foo",
                    }
                ]
            }
        ) | IsDict(
            # TODO: remove when deprecating Pydantic v1
            {
                "detail": [
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 7.5K bytes
    - Viewed (0)
  6. tests/test_tutorial/test_handling_errors/test_tutorial004.py

        )
        assert (
            # TODO: remove when deprecating Pydantic v1
            "value is not a valid integer" in response.text
            or "Input should be a valid integer, unable to parse string as an integer"
            in response.text
        )
    
    
    def test_get_http_error():
        response = client.get("/items/3")
        assert response.status_code == 418, response.text
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Jul 07 17:12:13 GMT 2023
    - 3.7K bytes
    - Viewed (0)
  7. tests/test_tutorial/test_dataclasses/test_tutorial001.py

            {
                "detail": [
                    {
                        "type": "float_parsing",
                        "loc": ["body", "price"],
                        "msg": "Input should be a valid number, unable to parse string as a number",
                        "input": "invalid price",
                    }
                ]
            }
        ) | IsDict(
            # TODO: remove when deprecating Pydantic v1
            {
                "detail": [
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 5.2K bytes
    - Viewed (0)
  8. tests/test_tutorial/test_body_multiple_params/test_tutorial001_py310.py

            {
                "detail": [
                    {
                        "type": "int_parsing",
                        "loc": ["path", "item_id"],
                        "msg": "Input should be a valid integer, unable to parse string as an integer",
                        "input": "foo",
                    }
                ]
            }
        ) | IsDict(
            # TODO: remove when deprecating Pydantic v1
            {
                "detail": [
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 7.6K bytes
    - Viewed (0)
  9. fastapi/dependencies/utils.py

                from multipart import __version__  # type: ignore
    
                assert __version__
                try:
                    # parse_options_header is only available in the right multipart
                    from multipart.multipart import parse_options_header  # type: ignore
    
                    assert parse_options_header
                except ImportError:
                    logger.error(multipart_incorrect_install_error)
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Tue Apr 02 02:52:56 GMT 2024
    - 29.5K bytes
    - Viewed (0)
  10. ci/official/utilities/extract_resultstore_links.py

          line_str += command
        else:
          line_str += ('Couldn\'t parse the bazel command, '
                       'check inside the build log instead')
        line_str += f'\n{url}\n'
        print(line_str)
        i += 1
    
    
    def main():
      args = parse_args()
      verbose = args.verbose
      build_log_path = os.path.expandvars(args.build_log)
      links = parse_log(build_log_path, verbose=verbose)
    
      if args.xml_out_path:
    Python
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Nov 08 17:50:27 GMT 2023
    - 10.9K bytes
    - Viewed (0)
Back to top