You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Remove pyre-fixme/pyre-ignore from ax/storage/ source files (facebook#4988)
Summary:
Pull Request resolved: facebook#4988
Remove ~124 pyre-fixme/pyre-ignore suppression comments from 22 source files
in ax/storage/ by applying proper type fixes:
- Use `cast(type[SQAClass], ...)` for SQA class lookups from config dicts
- Use `cast(type[Enum], enum)` for enum value/name access
- Change bare `type` to `type[Any]` in registry function signatures
- Use `assert_is_instance()` for JSON dict key narrowing
- Add proper type annotations for Generator return types
- Use `none_throws()` for generation strategy ID access
- Fix SQLAlchemy TypeDecorator parameter types
Remaining pyre errors are pre-existing SQLAlchemy/BoTorch stub mismatches
that cannot be fixed without changing library type stubs.
Reviewed By: dme65
Differential Revision: D95264795
fbshipit-source-id: 29cdfa255b929dfaeaf877b88e34850a8a343f03
0 commit comments