Patrick Kidger
e2f004afd4
Added support for jax.typing.ArrayLike; now works with PyTorch's bool
2023-02-25 17:01:27 -08:00
Patrick Kidger
81c56052e5
Fixes for some new failures. (Where did they come from?) ( #65 )
...
* Fixes for some new failures. (Where did they come from?)
* Fixed isort?
v0.2.12
2023-02-16 10:08:57 -08:00
Patrick Kidger
d911ebb99c
Fix abstractmethods being ignored after @jaxtyped
2023-01-22 11:43:36 -08:00
Patrick Kidger
f30b7d1546
Update README.md
2023-01-20 07:44:45 -08:00
Brent Yi
4b3f834e12
Fix vanilla dataclasses ( #56 )
2023-01-15 10:52:18 +01:00
Patrick Kidger
59e8fb0d18
Hopefully fixed PyTree raising spurious errors. Bit mysterious that this worked before, really. I've tested this fix as best I can against the various static type checkers, but these are weird and varied enough that this might not be a perfect fix. If you see this and have issues, let me know. ( #54 )
v0.2.11
2022-12-30 19:00:26 +00:00
Patrick Kidger
7dba3516c2
Fixed working with the new (unreleased) version of typeguard ( #53 )
v0.2.10
2022-12-29 17:46:25 +00:00
Patrick Kidger
2b1be5eb0a
Update README.md
2022-12-07 17:22:57 -08:00
Brent Yi
7b3d9a2e9a
Explicitly export names in jaxtyping.* ( #49 )
...
* Explicitly export names to make pyright happy
* Bump jax and jaxtyping versions
* Add note on `jaxtyping` names
* Remove __all__ from `array_types.py`
* Appease flake8
* Reduce import redundancy
* Fix capitalization
v0.2.9
2022-12-07 17:21:33 -08:00
Patrick Kidger
29654e7087
JAX is no longer a hard dependency (to support e.g. PyTorch) ( #50 )
2022-12-07 10:48:47 -08:00
Patrick Kidger
8fbf7bf3a5
added link to eqxvision
2022-12-05 11:37:32 -08:00
Patrick Kidger
a220df9964
The import hook now decorates dataclass __init__ methods ( #48 )
2022-11-16 13:38:04 -08:00
Kevin P Murphy
784aa78f7c
update jaxtyped decorator ( #44 )
...
* update jaxtyped decorator
* add newline character to pacify flake
* add precomit hooks
* add missing return statement
* replace typing_extensions>=4.2.0 with typing_extensions
* pin version range for typing_extensions
* set min version of typing-extensions but not max
* bump version number to 0.2.8
v0.2.8
2022-11-13 22:25:28 -08:00
Patrick Kidger
3f877c0dbb
Update array_types.py ( #41 )
2022-11-08 22:52:17 -08:00
Patrick Kidger
607f3c66b5
Silenced warning ( #40 )
2022-10-28 15:19:52 -07:00
Peter Roelants
d3651ca70e
NamedTuple example ( #36 )
2022-10-03 07:40:51 -07:00
Patrick Kidger
d246e21281
Better import hook ( #35 )
v0.2.7
2022-09-25 23:28:40 -07:00
Patrick Kidger
165065756f
Static type-checking fix ( #34 )
v0.2.6
2022-09-24 18:27:22 -07:00
ebrevdo
dcd73e3431
Add support for e.g. jaxtyping.Float[Union[...], ...] in py3.8 ( #31 )
...
* Add support for e.g. jaxtyping.Float[Union[...], ...] in py3.8
Turns out that python3.8, Union lacks the __name__ attribute. Use repr()
in these cases.
* Fix linter.
* Remove implicit cast to bool in favor of try/except.
2022-09-22 13:25:29 -07:00
Patrick Kidger
f175c7f315
Fixed py.type not being packaged ( #30 )
v0.2.5
2022-09-22 12:16:25 -07:00
Patrick Kidger
da8300ec6c
tidyness tweak ( #28 )
2022-09-20 15:16:52 -07:00
Patrick Kidger
39439c2790
More fixes ( #27 )
...
* Edge-case doc fixes for parameterising types with PyTrees or AbstractDtypes
* Fixes for threading
* version bump
v0.2.4
2022-09-20 15:12:21 -07:00
Patrick Kidger
6202dcc639
doc fix ( #26 )
v0.2.3
2022-09-19 23:30:29 -07:00
Patrick Kidger
c2e9d913d5
Fixed jaxtyped breaking descriptors. Fixed long module names. ( #25 )
v0.2.2
2022-09-19 22:40:25 -07:00
Patrick Kidger
62ddcc25b5
Threading fix ( #24 )
2022-09-16 08:04:28 -07:00
Patrick Kidger
a89ebe356b
Merge pull request #22 from google/v021
...
Bump version
v0.2.1
2022-09-15 08:19:08 -07:00
Patrick Kidger
98133f5e1e
Bump version
2022-09-15 16:15:28 +01:00
Patrick Kidger
2c7dbbd593
Merge pull request #21 from google/pytyped
...
Create `py.typed`
2022-09-15 08:15:03 -07:00
Patrick Kidger
1291a90192
Merge pull request #20 from google/bool-checking
...
Fix for boolean checking not working
2022-09-15 08:14:56 -07:00
Patrick Kidger
14117804aa
Create py.typed
2022-09-15 16:07:02 +01:00
Patrick Kidger
e61a37f0a3
Fix for boolean checking not working ( #19 )
2022-09-15 16:05:49 +01:00
Patrick Kidger
3c7e4e11ee
Merge pull request #16 from google/rewrite
...
Rewrite!
v0.2.0
2022-09-07 12:30:59 -07:00
Patrick Kidger
01f8f20bf5
Fixed a few names
2022-09-07 12:20:42 -07:00
Patrick Kidger
cb11a93b22
doc tweaks
2022-09-07 12:06:15 -07:00
Patrick Kidger
c82fbbea4e
doc tweaks
2022-09-07 12:00:58 -07:00
Patrick Kidger
f28b0c789a
doc tweaks
2022-09-07 11:32:14 -07:00
Patrick Kidger
a53fe6af57
Changes from feedback:
...
- Float32 introduced to replace f32 (etc.)
- Old f32 aliases were previously around for backward-compatibility, but
the code is pretty hideous, and all stakeholders are now on board
through RFC #13 .
- Overall feedback was that Int{Sign,Unsign} was too long and not enough
like numpy. Changed to Int, UInt, and Integer.
2022-09-07 11:09:48 -07:00
Patrick Kidger
140be9ecec
Doc updates 2
2022-08-30 13:26:41 -07:00
Patrick Kidger
07e735797e
Doc updates
2022-08-30 13:14:50 -07:00
Patrick Kidger
48e8131247
Added jaxtyping.Array=jnp.ndarray
2022-08-30 12:56:47 -07:00
Patrick Kidger
903000f3d5
Rewrote syntax
2022-08-30 12:47:45 -07:00
Patrick Kidger
3f9fad59bd
Merge pull request #11 from google/v010
...
Version 0.1.0
v0.1.0
2022-08-01 01:09:25 +01:00
Patrick Kidger
8f64c99649
Pre-commit fixes
2022-08-01 01:06:45 +01:00
Patrick Kidger
3e86c704ae
Bump version
2022-08-01 01:01:59 +01:00
Patrick Kidger
07259aa5c8
Added support for symbolic expressions in axes. Closes #9 .
2022-08-01 01:00:18 +01:00
Patrick Kidger
6ff4620d1a
Broadcast+variadic is now more lenient, and supports anything broadcastable together. Closes #8
2022-07-31 23:59:20 +01:00
Patrick Kidger
6e2837e5b7
Tidied up _#* into acting as prefixes, regardless of order. Closes #10
2022-07-31 23:45:40 +01:00
Patrick Kidger
7b698ae215
Merge pull request #3 from google/test-tidy
...
Test tidy
2022-07-12 10:11:50 +01:00
Patrick Kidger
e162e1281a
Made missing beartype result in test skips rather than tests not running
2022-07-12 10:07:42 +01:00
Patrick Kidger
9f75958b2d
Make test/helpers.py a relative import
2022-07-12 10:03:19 +01:00