fastmcp/tests/utilities/openapi
Jeremiah Lowin 6cc9559f84
Bump ty to ==0.0.1a25 (#2350)
* Bump ty to >=0.0.1a25 with type fixes

Follow-up to #2295. Updates ty and fixes compatibility issues with alpha 25, including:

- Updated ignore comment syntax (possibly-unbound-attribute → possibly-missing-attribute)
- Fixed async generator type handling with anext()
- Fixed type narrowing for timeout parameters
- Converted base_url assignments to AnyHttpUrl after string manipulation
- Added CallToolResult to return type annotations
- Removed redundant type casts
- Fixed test form data to use strings instead of bytes

ty alpha 25 has limitations with isinstance() narrowing on unions (see pyproject.toml for details), requiring some targeted type ignores.

* Pin ty to ==0.0.1a25

Alpha releases can have breaking changes, so pin to the tested version.
2025-11-02 20:02:45 -05:00
..
__init__.py Add openapi parsing utilities 2025-04-08 21:11:52 -04:00
conftest.py Add openapi parsing utilities 2025-04-08 21:11:52 -04:00
test_nullable_fields.py Fix nullable field handling in OpenAPI to JSON Schema conversion (#1279) 2025-07-28 20:31:23 -04:00
test_openapi.py feat: introduce inline snapshots (#1605) 2025-08-25 10:08:55 -04:00
test_openapi_advanced.py Fix external schema reference handling in OpenAPI parser 2025-06-25 21:25:06 -04:00
test_openapi_fastapi.py Bump ty to ==0.0.1a25 (#2350) 2025-11-02 20:02:45 -05:00
test_openapi_output_schemas.py fix: replace oneOf with anyOf in OpenAPI schemas to handle overlapping unions (#1119) 2025-07-11 13:31:45 -04:00