Skip to content

Obscure fixes#350

Merged
patrick-kidger merged 7 commits intomainfrom
obscure-fixes
Oct 1, 2025
Merged

Obscure fixes#350
patrick-kidger merged 7 commits intomainfrom
obscure-fixes

Conversation

@patrick-kidger
Copy link
Owner

@patrick-kidger patrick-kidger commented Oct 1, 2025

A collection of esoteric fixes, mostly due to versions of other libraries:

  • Fix for partially-stringified annotations resulting in spurious errors. (If we can't resolve them at decoration time then they just become an Any instead.)
  • Fix for Dtype[numpy.typing.ArrayLike, ...] not accepting bool/int/float in NumPy 2.3.3-ish.
  • Fix for Foo | Bar annotations with typeguard==2.13.3 producing false negatives. (Fixes Optionals via PEP 604 unions fail to validate with typeguard 2.13.3 #349.)
  • Fix for jaxtyping.ArrayLike not including jax._src.literals.LiteralArray under jax==0.7.2.

@patrick-kidger patrick-kidger force-pushed the obscure-fixes branch 3 times, most recently from b21e961 to 12759c3 Compare October 1, 2025 12:44
…sis rather than a per-function basis, and (b) treating unresolveable partially-stringified annotations as Any rather than leaving them unchanged.
@patrick-kidger patrick-kidger force-pushed the obscure-fixes branch 3 times, most recently from c2ad98b to daa8417 Compare October 1, 2025 13:28
@patrick-kidger patrick-kidger merged commit f26eee5 into main Oct 1, 2025
5 checks passed
@patrick-kidger patrick-kidger deleted the obscure-fixes branch October 1, 2025 13:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Optionals via PEP 604 unions fail to validate with typeguard 2.13.3

1 participant