Recent Releases of https://github.com/jorenham/optype
https://github.com/jorenham/optype - v0.13.4
What's Changed
optype.numpy
- upgrade
numpy-typing-compattov20250818in thenumpyextra by @jorenham in https://github.com/jorenham/optype/pull/421 - installation instructions for the conda
optype-numpypackage by @jorenham in https://github.com/jorenham/optype/pull/422 ### Other Changes - prepare for the next release by @jorenham in https://github.com/jorenham/optype/pull/419
Full Changelog: https://github.com/jorenham/optype/compare/v0.13.3...v0.13.4
- Python
Published by jorenham 6 months ago
https://github.com/jorenham/optype - v0.13.3
This patch release adds an upper version bound for numpy-typing-compat to prevent potential compatibility issues with future releases.
What's Changed
optype.numpy
- set an upper version bound for
numpy-typing-compatby @jorenham in https://github.com/jorenham/optype/pull/414 - prepare for the new
numpy-typing-compatversioning by @jorenham in https://github.com/jorenham/optype/pull/418 ### Other Changes - prepare for the 0.13.3 release by @jorenham in https://github.com/jorenham/optype/pull/416
- improved project metadata by @jorenham in https://github.com/jorenham/optype/pull/417
Full Changelog: https://github.com/jorenham/optype/compare/v0.13.2...v0.13.3
- Python
Published by jorenham 6 months ago
https://github.com/jorenham/optype - v0.13.2
This is a bugfix release that addresses a permission issue in the built wheels that was caused by https://github.com/astral-sh/uv/issues/14920.
What's Changed
- Bump the actions group with 3 updates by @dependabot[bot] in https://github.com/jorenham/optype/pull/409
- Bump the actions group with 4 updates by @dependabot[bot] in https://github.com/jorenham/optype/pull/410
- upgrade development and build dependencies by @jorenham in https://github.com/jorenham/optype/pull/412
- bump
astral-sh/setup-uvto6.5.0by @jorenham in https://github.com/jorenham/optype/pull/413
Full Changelog: https://github.com/jorenham/optype/compare/v0.13.1...v0.13.2
- Python
Published by jorenham 6 months ago
https://github.com/jorenham/optype - v0.13.1
What's Changed
optype.numpy
- fix
CanArrayStrict{1,2,3}Dby @jorenham in https://github.com/jorenham/optype/pull/407
Full Changelog: https://github.com/jorenham/optype/compare/v0.13.0...v0.13.1
- Python
Published by jorenham 7 months ago
https://github.com/jorenham/optype - v0.13.0
[!IMPORTANT] To ensure static typing compatibility with the SPEC 0 NumPy versions,
optype.numpynow requiresnumpy-typing-compat. It will automatically be installed with theoptype[numpy]extra.
What's Changed
optype.numpy
- robust numpy compat with
numpy-typing-compatby @jorenham in https://github.com/jorenham/optype/pull/394 - make
AnyLongDouble*compatible withnumpy<2.2by @jorenham in https://github.com/jorenham/optype/pull/395 - make
Any[U]IntPDTypecompatible withnumpy<2.2by @jorenham in https://github.com/jorenham/optype/pull/396 - fix older numpy compat issues with
numpy-typing-compatby @jorenham in https://github.com/jorenham/optype/pull/399 - include
numpy==2.0.*in the testing matrix by @jorenham in https://github.com/jorenham/optype/pull/401 - use
np.ndarrayinstead ofCanArrayinTo*Strict{1,2,3}Donnumpy<2.1by @jorenham in https://github.com/jorenham/optype/pull/400 - warn on
numpy-typing-compat/numpyversion mismatch by @jorenham in https://github.com/jorenham/optype/pull/403 - bump
numpy-typing-compattov20250730by @jorenham in https://github.com/jorenham/optype/pull/404 - error instead of warn in case of unsupported
numpy-typing-compatby @jorenham in https://github.com/jorenham/optype/pull/405
Documentation
- update the documented minimum support NumPy version by @jorenham in https://github.com/jorenham/optype/pull/397
Dependencies
- bump development dependencies by @jorenham in https://github.com/jorenham/optype/pull/402
Other Changes
- prepare for further development by @jorenham in https://github.com/jorenham/optype/pull/392
Full Changelog: https://github.com/jorenham/optype/compare/v0.12.2...v0.13.0
- Python
Published by jorenham 7 months ago
https://github.com/jorenham/optype - v0.12.2
What's Changed
- Bundle the license file by @jorenham in https://github.com/jorenham/optype/pull/391
Full Changelog: https://github.com/jorenham/optype/compare/v0.12.1...v0.12.2
- Python
Published by jorenham 7 months ago
https://github.com/jorenham/optype - v0.12.1
What's Changed
optype.Can*
Can*Same[-T?, +R?]with-> Self | Rby @jorenham in https://github.com/jorenham/optype/pull/379CanI*Sameinplace operator protocols by @jorenham in https://github.com/jorenham/optype/pull/381- generic
Can*Selfarithmetic unary operator protocols by @jorenham in https://github.com/jorenham/optype/pull/382 - move the
Can*tests to a more appropriate testing module @jorenham in https://github.com/jorenham/optype/pull/384
Documentation
- fix typos and grammar issues in the docs by @jorenham in https://github.com/jorenham/optype/pull/389
Developer experience
- formatting with
dprintby @jorenham in https://github.com/jorenham/optype/pull/374 tox-uv& more tox envs by @jorenham in https://github.com/jorenham/optype/pull/375- use
lefthookas git hooks manager by @jorenham in https://github.com/jorenham/optype/pull/377 - ruff config cleanup by @jorenham in https://github.com/jorenham/optype/pull/376
- instructions for copilot by @jorenham in https://github.com/jorenham/optype/pull/388
Dependencies
- bump
ruffto0.12.4by @jorenham in https://github.com/jorenham/optype/pull/370 - preliminary support for python 3.14 by @jorenham in https://github.com/jorenham/optype/pull/385
- explicit github action version tags by @jorenham in https://github.com/jorenham/optype/pull/386
Other Changes
- move the type-tests in
_core/_do.pytotests/do.pyby @jorenham in https://github.com/jorenham/optype/pull/378 - prepare for further development by @jorenham in https://github.com/jorenham/optype/pull/368
uvbuild backend by @jorenham in https://github.com/jorenham/optype/pull/387
Full Changelog: https://github.com/jorenham/optype/compare/v0.12.0...v0.12.1
- Python
Published by jorenham 7 months ago
https://github.com/jorenham/optype - v0.12.0
What's Changed
optype
Can*Selfbinop protocols by @jorenham in https://github.com/jorenham/optype/pull/348Canbinop return type param defaults to input param by @jorenham in https://github.com/jorenham/optype/pull/356- remove
Justtype-checker compatibility notice by @jorenham in https://github.com/jorenham/optype/pull/357 - improved
TypeVarnaming scheme for theCan*protocols by @jorenham in https://github.com/jorenham/optype/pull/358 CanGetSelf[-T, +V]alias forCanGet[T, V, Self]by @jorenham in https://github.com/jorenham/optype/pull/359Can*Samebinop protocols by @jorenham in https://github.com/jorenham/optype/pull/362
optype.numpy
optype.numpy.Array*type alias docstring fixes by @jorenham in https://github.com/jorenham/optype/pull/353- [BREAKING]
optype.numpy.CanArrayND: remove scalar type parameter default by @jorenham in https://github.com/jorenham/optype/pull/354 - prepare for numpy 2.4 by @jorenham in https://github.com/jorenham/optype/pull/360
- mypy's layered dependency blindness workaround by @jorenham in https://github.com/jorenham/optype/pull/361
optype.numpy.compatextended precision inexact types by @jorenham in https://github.com/jorenham/optype/pull/363optype.numpy.To*array-like alias simplifications by @jorenham in https://github.com/jorenham/optype/pull/364optype.numpyarray-like types forfloat16,float32, andcomplex64by @jorenham in https://github.com/jorenham/optype/pull/365optype.numpy.ToJust[C]LongDouble*array-like type aliases by @jorenham in https://github.com/jorenham/optype/pull/366
Dependencies
- bump
mypyto1.17.0by @jorenham in https://github.com/jorenham/optype/pull/350 - bump
basedpyrightto1.30.1by @jorenham in https://github.com/jorenham/optype/pull/351 - bump
ruffto1.12.3by @jorenham in https://github.com/jorenham/optype/pull/352 - bump
basedpyrightto1.31.0by @jorenham in https://github.com/jorenham/optype/pull/367
Other Changes
- prepare for further development by @jorenham in https://github.com/jorenham/optype/pull/347
Full Changelog: https://github.com/jorenham/optype/compare/v0.11.0...v0.12.0
- Python
Published by jorenham 7 months ago
https://github.com/jorenham/optype - v0.11.0
What's Changed
optype.numpy
- NumPy 2.3.0 support, and two minor
optype.numpyfixes on older numpy versions by @jorenham in https://github.com/jorenham/optype/pull/336 - [BREAKING]
optype.numpy.AnyFloat64DTypewithoutNoneby @jorenham in https://github.com/jorenham/optype/pull/346
Dependencies
- mypy 1.16.0 by @jorenham in https://github.com/jorenham/optype/pull/334
- Bump numpy from 2.3.0 to 2.3.1 in the actions group by @dependabot in https://github.com/jorenham/optype/pull/339
- bump
ruffto0.12.2by @jorenham in https://github.com/jorenham/optype/pull/341 - bump
mypyto1.16.1by @jorenham in https://github.com/jorenham/optype/pull/342 - bump
basedpyrightto1.30.0(pyright 1.1.403) by @jorenham in https://github.com/jorenham/optype/pull/343 - bump
toxto4.27.0by @jorenham in https://github.com/jorenham/optype/pull/344 - bump
pytestto8.4.1by @jorenham in https://github.com/jorenham/optype/pull/345
Continuous integration
- use
github.refinstead ofgithub.shain theconcurrency.groupofCIby @jorenham in https://github.com/jorenham/optype/pull/337
Other Changes
- prepare for further development by @jorenham in https://github.com/jorenham/optype/pull/333
Full Changelog: https://github.com/jorenham/optype/compare/v0.10.0...v0.11.0
- Python
Published by jorenham 8 months ago
https://github.com/jorenham/optype - v0.10.0
What's Changed
optype.numpy
- prefer gradual type parameter defaults by @jorenham in https://github.com/jorenham/optype/pull/316
- remove type parameters for individual
numpyshape axes by @jorenham in https://github.com/jorenham/optype/pull/317 - optionally gradual unbounded shape-types by @jorenham in https://github.com/jorenham/optype/pull/318
- require
numpy >= 1.25by @jorenham in https://github.com/jorenham/optype/pull/320 - stop using
NBitBaseinoptype.numpy.compatby @jorenham in https://github.com/jorenham/optype/pull/326 ToJustInt64numpy array-like aliases forint64by @jorenham in https://github.com/jorenham/optype/pull/328- numpy version agnostic gradual shape type defaults by @jorenham in https://github.com/jorenham/optype/pull/329
- numpy scalar type parameter gradual defaults by @jorenham in https://github.com/jorenham/optype/pull/330
numpy.CanArrayFunctioncontravariance assignability fix by @jorenham in https://github.com/jorenham/optype/pull/331optype.numpy.SequenceNDcompatibility with numpy by @jorenham in https://github.com/jorenham/optype/pull/332
Dependencies
- bump
ruffto0.11.4by @jorenham in https://github.com/jorenham/optype/pull/310 - update development dependencies by @jorenham in https://github.com/jorenham/optype/pull/312
- bump development dependencies by @jorenham in https://github.com/jorenham/optype/pull/313
- bump basedpyright to 1.29.2 (pyright 1.1.401) by @jorenham in https://github.com/jorenham/optype/pull/321
- require
python >= 3.11by @jorenham in https://github.com/jorenham/optype/pull/322 - bump
ruffto0.11.11by @jorenham in https://github.com/jorenham/optype/pull/327
Continuous integration
- read-only ci permissions by @jorenham in https://github.com/jorenham/optype/pull/323
- bump
scientific-python/repo-reviewtov0.12.2by @jorenham in https://github.com/jorenham/optype/pull/324 - fix dependabot config by @jorenham in https://github.com/jorenham/optype/pull/325
Other Changes
- prepare for next release by @jorenham in https://github.com/jorenham/optype/pull/309
- bump
astral-sh/setup-uvtov6by @jorenham in https://github.com/jorenham/optype/pull/311 - prepare for the optype 0.10.0 release by @jorenham in https://github.com/jorenham/optype/pull/319
Full Changelog: https://github.com/jorenham/optype/compare/v0.9.3...v0.10.0
- Python
Published by jorenham 9 months ago
https://github.com/jorenham/optype - v0.9.3
This bugfix release addresses an issue where the 2- and 3-d optype.numpy array-like type aliases were not assignable to their *ND variants, e.g.:
```py import numpy as np import optype.numpy as onp
def fn(x: onp.ToFloatND) -> int: return np.asarray(x).size
def f2(x: onp.ToFloat2D) -> int: return fn(x) # will no longer be rejected ```
This additionally works around an issue in typing_extensions==4.13.0 that results in a TypeError being raised when taking the union of typing.TypeAliasType and typing_extension.TypeAliasType on (at least) Python 3.12.
What's Changed
optype.numpy
- update development dependencies, and more flexible pyright config by @jorenham in https://github.com/jorenham/optype/pull/307
- fix
To{}(2|3)Dnot being assignable toTo{}NDby @jorenham in https://github.com/jorenham/optype/pull/308 ### Other Changes - prepare for next release by @jorenham in https://github.com/jorenham/optype/pull/304
- bump
ruffto0.11.0by @jorenham in https://github.com/jorenham/optype/pull/305
Full Changelog: https://github.com/jorenham/optype/compare/v0.9.2...v0.9.3
- Python
Published by jorenham 11 months ago
https://github.com/jorenham/optype - v0.9.2
What's Changed
optype
- mark
optype.Just*as@finaland simplify metaclasses by @jorenham in https://github.com/jorenham/optype/pull/299 - add
optype.JustDateby @jorenham in https://github.com/jorenham/optype/pull/300
optype.numpy
numpy>=2.2fixes for array- and dtype-likes by @jorenham in https://github.com/jorenham/optype/pull/301- new
optype.numpy.randomsubmodule by @jorenham in https://github.com/jorenham/optype/pull/302 - common numpy literal types by @jorenham in https://github.com/jorenham/optype/pull/303
Dependencies
- update the dev deps by @jorenham in https://github.com/jorenham/optype/pull/291
- bump
numpyto2.2.3by @jorenham in https://github.com/jorenham/optype/pull/292 - remove pre-commit by @jorenham in https://github.com/jorenham/optype/pull/296
- update development dependencies by @jorenham in https://github.com/jorenham/optype/pull/297
- bump
basedmypyto2.10.0by @jorenham in https://github.com/jorenham/optype/pull/298
Other Changes
- prepare for
v0.9.2by @jorenham in https://github.com/jorenham/optype/pull/289
Full Changelog: https://github.com/jorenham/optype/compare/v0.9.1...v0.9.2
- Python
Published by jorenham 12 months ago
https://github.com/jorenham/optype - v0.9.1
What's Changed
optype.numpy
- fix longdouble dtype name literal by @jorenham in https://github.com/jorenham/optype/pull/283
- remove
float80andcomplex160from[c]longdoubleby @jorenham in https://github.com/jorenham/optype/pull/285 - add
onp.NDim0, which, unlikeNDim, excludes0by @jorenham in https://github.com/jorenham/optype/pull/286 - add literal
onp.To[Just]{False,True}aliases by @jorenham in https://github.com/jorenham/optype/pull/287 - generic
onp.ToArrayStrict{1,2,3}Dby @jorenham in https://github.com/jorenham/optype/pull/288
Dependencies
- Update the development dependencies by @jorenham in https://github.com/jorenham/optype/pull/281
- bump
ruffto0.9.4by @jorenham in https://github.com/jorenham/optype/pull/284
Other Changes
- prepare for
v0.9.1by @jorenham in https://github.com/jorenham/optype/pull/277
Full Changelog: https://github.com/jorenham/optype/compare/v0.9.0...v0.9.1
- Python
Published by jorenham about 1 year ago
https://github.com/jorenham/optype - v0.9.0
Highlights
- ⚡ Faster
import optype as opby deferring submodule imports (https://github.com/jorenham/optype/pull/251) - ✨ New
op.iosubmodule (docs) (https://github.com/jorenham/optype/pull/253) - ✨ New and improved
op.Justtypes (docs):-
Just[T]- Accepts_: Tiff.type(_) is T. JustInt- Accepts_: intand literal ints, rejects e.g._: boolJustFloat- Accepts_: float, rejects e.g._: intand_: numpy.float64JustComplex- Accepts_: complex, rejects_: floatand_: numpy.complex128JustBytes- Accepts_: bytesand bytes-literals, rejects_: bytearray,_: memoryview, and_: numpy.bytes_JustObject- Accepts_: object, rejects everything else. Useful for annotating sentinels likeDEFAULT = object().
-
- ✨ New
op.numpy.is_array_{0,1,2,3,n}dtypeguards (docs) (https://github.com/jorenham/optype/pull/270)
Deprecations
- The
op.typing.Just*types are deprecated in favor ofop.Just*.
What's Changed
optype
- generic
optype.HasClass: suprisingly useful! by @jorenham in https://github.com/jorenham/optype/pull/257 - move
Just*fromoptype.typingtooptypeand deprecate by @jorenham in https://github.com/jorenham/optype/pull/258 - custom runtime-checkable
Just*types by @jorenham in https://github.com/jorenham/optype/pull/260 Justwithout redundant typing hacks by @jorenham in https://github.com/jorenham/optype/pull/261- add
JustObjectby @jorenham in https://github.com/jorenham/optype/pull/264 - add
JustBytesby @jorenham in https://github.com/jorenham/optype/pull/265 - change
HasFuncandHasWrappedgeneric type params by @jorenham in https://github.com/jorenham/optype/pull/267 - change
HasTypeParamstype params by @jorenham in https://github.com/jorenham/optype/pull/268
optype.numpy
- prefer
Just{Float,Complex}overJust[{float,complex}]inoptype.numpyby @jorenham in https://github.com/jorenham/optype/pull/240 - add the missing
Justtypes toonp.Any*DTypeby @jorenham in https://github.com/jorenham/optype/pull/243 optype.numpy.is_typeguard by @jorenham in https://github.com/jorenham/optype/pull/270- split the private
op.numpy._any_dtypemodule into two by @jorenham in https://github.com/jorenham/optype/pull/275 - new
optype.numpy.ToDTypealias by @jorenham in https://github.com/jorenham/optype/pull/276
Dependencies
- ruff 0.9.1, basedpyright 1.23.2, basedmypy 2.9.1 by @jorenham in https://github.com/jorenham/optype/pull/239
- bump
basedpyrightto1.24.0by @jorenham in https://github.com/jorenham/optype/pull/255 - bump
ruffto0.9.2by @jorenham in https://github.com/jorenham/optype/pull/259 - bump
numpyto2.2.2(dev-only) by @jorenham in https://github.com/jorenham/optype/pull/263 - bump
pre-committo4.1.0by @jorenham in https://github.com/jorenham/optype/pull/271
Continuous integration
- trigger the build & publish workflow on (pre)release by @jorenham in https://github.com/jorenham/optype/pull/238
- automatically label PR's by @jorenham in https://github.com/jorenham/optype/pull/247
- add
CODEOWNERSby @jorenham in https://github.com/jorenham/optype/pull/248
Other Changes
- more consistent style for imports and exports by @jorenham in https://github.com/jorenham/optype/pull/246
- lazy submodule imports by @jorenham in https://github.com/jorenham/optype/pull/251
optype.ioby @jorenham in https://github.com/jorenham/optype/pull/253- stop using
__future__.annotationsandtyping.TYPE_CHECKINGby @jorenham in https://github.com/jorenham/optype/pull/256 - cleaner
ruff.lint.isortconfig by @jorenham in https://github.com/jorenham/optype/pull/262 - cleaner private module structure by @jorenham in https://github.com/jorenham/optype/pull/266
- format
pyproject.tomlby @jorenham in https://github.com/jorenham/optype/pull/269 - update the auto-release changelog config by @jorenham in https://github.com/jorenham/optype/pull/272
- globally ignore common inline typechecker ignores by @jorenham in https://github.com/jorenham/optype/pull/273
Full Changelog: https://github.com/jorenham/optype/compare/v0.8.0...v0.9.0
- Python
Published by jorenham about 1 year ago
https://github.com/jorenham/optype - v0.8.0
What's Changed
optype.numpy
- accept more valid numpy array-likes in
optype.numpy.To*{1,2,3,N}by @jorenham in https://github.com/jorenham/optype/pull/214 onp.Any[U]Int{DType,Array}fornp.int_by @jorenham in https://github.com/jorenham/optype/pull/224- include
opt.Just[{int,float,complex}]inonp.Any{Int,Float,Complex}{Array,DType}by @jorenham in https://github.com/jorenham/optype/pull/225 - new
onp.compatmodule, andAnyas shape-type default onnumpy<2.1by @jorenham in https://github.com/jorenham/optype/pull/226 - new
onp.Matrixandonp.MArray[{0,1,2,3}D]aliases by @jorenham in https://github.com/jorenham/optype/pull/228 onp.AnyBytes8DTypefornp.dtype("c")by @jorenham in https://github.com/jorenham/optype/pull/230- new
onp.ToJust{Bool,Float,Complex}aliases by @jorenham in https://github.com/jorenham/optype/pull/231 - new
onp.To[Just]{Float64,Complex128}*aliases by @jorenham in https://github.com/jorenham/optype/pull/232 ###optype.pickle - Added missed optype documentation by @kam193 in https://github.com/jorenham/optype/pull/212
###
optype.typing - add
JustFloatandJustComplextooptype.typingby @jorenham in https://github.com/jorenham/optype/pull/215 ### Dependencies - migrate from
codespelltotyposby @jorenham in https://github.com/jorenham/optype/pull/213 - bump
basedmypyto2.8.0andbasedpyrightto1.22.1by @jorenham in https://github.com/jorenham/optype/pull/218 - update development dependencies by @jorenham in https://github.com/jorenham/optype/pull/223 ### Continuous integration
- test & typecheck all of the supported numpy versions by @jorenham in https://github.com/jorenham/optype/pull/227
- PyPI trusted publishing by @jorenham in https://github.com/jorenham/optype/pull/234 ### Other Changes
- update the security policy by @jorenham in https://github.com/jorenham/optype/pull/216
- automatically generated release notes configuration by @jorenham in https://github.com/jorenham/optype/pull/233
New Contributors
- @kam193 made their first contribution in https://github.com/jorenham/optype/pull/212
Full Changelog: https://github.com/jorenham/optype/compare/v0.7.3...v0.8.0
- Python
Published by jorenham about 1 year ago
https://github.com/jorenham/optype - v0.7.3
Highlights
optypeis now onconda-forge, thanks to @lucascolley (docs)- [
optype.numpy] TheCanArrayNDtype now optionally accepts a second shape-type argument (docs) - [
optype.numpy] NewArray0DandCanArray0Daliases for 0-dimensional numpy arrays (not scalars) (docs) - [
optype.numpy] NewTo*Strict{1,2,3}Darray-like types with "strict" shape, useful for non-overlapping shape-type overloads (docs)
Fixes
- Fix
ImportErroronpython >= 3.13withouttyping_extensionsinstalled
What's Changed
- fix license metadata by @jorenham in https://github.com/jorenham/optype/pull/202
- bump
ruffto0.8.1by @jorenham in https://github.com/jorenham/optype/pull/203 - Conda installation instructions by @jorenham in https://github.com/jorenham/optype/pull/204
- fix
typing_extensionsimport onpython>=3.13by @jorenham in https://github.com/jorenham/optype/pull/205 - optional
onp.CanArrayNDshape-type param, improved shape-type compatibility by @jorenham in https://github.com/jorenham/optype/pull/206 onp.To*Strict{1,2,3}D: array-like aliases with strict shape-type by @jorenham in https://github.com/jorenham/optype/pull/207- fix (more)
typing_extensionsimports onpython>=3.13by @jorenham in https://github.com/jorenham/optype/pull/208 - 0-d numpy array aliases by @jorenham in https://github.com/jorenham/optype/pull/209
Full Changelog: https://github.com/jorenham/optype/compare/v0.7.2...v0.7.3
- Python
Published by jorenham about 1 year ago
https://github.com/jorenham/optype - v0.7.2
Highlights
optype.numpy.To*3D- Array-like aliases for 3-D array-likes (docs)optype.numpy.ToJustInt*- Scalar- and array-like aliases for just integer array-likes, i.e.boolandnp.bool_will be rejected (docs)
Fixes
- #194 - workaround for a mypy bug with recursive sequences types
What's Changed
ruff 0.8.0andbasedpyright 1.22.0by @jorenham in https://github.com/jorenham/optype/pull/195- workaround for a mypy bug with recursive sequences types by @jorenham in https://github.com/jorenham/optype/pull/196
- export
SequenceNDfromoptype.numpyby @jorenham in https://github.com/jorenham/optype/pull/197 - 3-d aliases for arrays and array-likes in
optype.numpyby @jorenham in https://github.com/jorenham/optype/pull/198 ToJustIntscalar- and array-likes inoptype.numpyby @jorenham in https://github.com/jorenham/optype/pull/199
Full Changelog: https://github.com/jorenham/optype/compare/v0.7.1...v0.7.2
- Python
Published by jorenham about 1 year ago
https://github.com/jorenham/optype - v0.7.1
What's Changed
- fix
onp.ToArray{1,2}Dnames by @jorenham in https://github.com/jorenham/optype/pull/193
Full Changelog: https://github.com/jorenham/optype/compare/v0.7.0...v0.7.1
- Python
Published by jorenham over 1 year ago
https://github.com/jorenham/optype - v0.7.0
Highlights
- [BREAKING] The
optype.numpy.Any*aliases no longer accept bare scalars types - Coercible scalar- and array-like type aliases
optype.numpy.Array{1,2,3,N}D(docs) - The new
optype.dlpackmodule with DLPack types and enums (docs) - Improved the readability of the
optype.numpytypes - Experimental
JustandJustIntinoptype.typing(docs)
What's Changed
- development dependency updates by @jorenham in https://github.com/jorenham/optype/pull/160
- native toml tox config by @jorenham in https://github.com/jorenham/optype/pull/161
- switch from
poetrytouvby @jorenham in https://github.com/jorenham/optype/pull/162 - switch from single to double quotes for black compatibility by @jorenham in https://github.com/jorenham/optype/pull/163
- enforce
ruff formatby @jorenham in https://github.com/jorenham/optype/pull/164 - clean up the internal module structure by @jorenham in https://github.com/jorenham/optype/pull/165
- update pre-commit hooks by @pre-commit-ci in https://github.com/jorenham/optype/pull/166
- update development dependencies by @jorenham in https://github.com/jorenham/optype/pull/168
optype.dlpack: DLPack types and enums by @jorenham in https://github.com/jorenham/optype/pull/169optype.array_api- dtypes by @jorenham in https://github.com/jorenham/optype/pull/170- Revert "
optype.array_api- dtypes" by @jorenham in https://github.com/jorenham/optype/pull/176 - PEP 735 dependency groups, and fixed mypy config by @jorenham in https://github.com/jorenham/optype/pull/177
- fix
optype.numpy.CanArrayby @jorenham in https://github.com/jorenham/optype/pull/178 optype.types.Deprecatedby @jorenham in https://github.com/jorenham/optype/pull/179- simplified
optype.numpydtypes by @jorenham in https://github.com/jorenham/optype/pull/182 - fix and improve the
optype.numpy.Any*docs by @jorenham in https://github.com/jorenham/optype/pull/183 - improve readability of
optype.numpytype aliases and protocols by @jorenham in https://github.com/jorenham/optype/pull/184 optype.numpy.Array{1,2,3,N}Daliases by @jorenham in https://github.com/jorenham/optype/pull/185- workaround a PEP 696 bug in
typing_extensions.ProtocolaffectingCanSequenceby @jorenham in https://github.com/jorenham/optype/pull/186 - add SPEC 0 badge by @jorenham in https://github.com/jorenham/optype/pull/187
- bump
basedpyrightto1.21.1(pyright 1.1.389) by @jorenham in https://github.com/jorenham/optype/pull/188 - bump
ruffto0.7.4by @jorenham in https://github.com/jorenham/optype/pull/189 - experimental
JustandJustInttypes inoptype.typingby @jorenham in https://github.com/jorenham/optype/pull/191 optype.numpy.To*coercible scalar- and array-likes by @jorenham in https://github.com/jorenham/optype/pull/192
New Contributors
- @pre-commit-ci made their first contribution in https://github.com/jorenham/optype/pull/166
Full Changelog: https://github.com/jorenham/optype/compare/v0.6.1...v0.7.0
- Python
Published by jorenham over 1 year ago
https://github.com/jorenham/optype - v0.6.1
This is a bugfix release with no breaking changes.
However, because optype now uses less typing.Any, which could cause type-checkers to report errors that were previously hidden.
Highlights
- Stricter type-checking with basedmypy.
- Removed almost all
typing.Anyuses. See https://github.com/numpy/numpy/pull/27211 for whyAnyis evil. - Fixed several typing errors with numpy 2.1.
What's Changed
- Farewell git-flow by @jorenham in https://github.com/jorenham/optype/pull/151
- Add security policy by @jorenham in https://github.com/jorenham/optype/pull/152
- Add a sponsor button by @jorenham in https://github.com/jorenham/optype/pull/153
- basedmypy by @jorenham in https://github.com/jorenham/optype/pull/154
- Bump NumPy to 2.1.0 by @jorenham in https://github.com/jorenham/optype/pull/155
- basedmypy badge by @jorenham in https://github.com/jorenham/optype/pull/156
- optype 0.6.1 by @jorenham in https://github.com/jorenham/optype/pull/157
Full Changelog: https://github.com/jorenham/optype/compare/v0.6.0...v0.6.1
- Python
Published by jorenham over 1 year ago
https://github.com/jorenham/optype - v0.6.0
Highlights
- Mypy support (strict mode)
- Beartype support
- New standard library modules
- Improvements to
optype.numpy(it's still optional)- NumPy 2.1 support
- Improved docs
- Shape type aliases`
- Support for
numpy.dtypes.StringDType(numpy >= 2) - Reworked
Any*ArrayandAny*DType
Breaking changes
- Increased the minimum Python version from 3.10.0 to 3.10.1
- Increased the minimum
typing_extensionsversion from 4.7 to 4.8 - Moved
CanCopy,CanDeepcopyandCanReplacefromoptype._tooptype.copy._ - Moved
HasDataclassFieldsfromoptype._tooptype.dataclasses._ - Moved
CanGetnewargs[Ex],CanReduce[Ex], andCan{Get,Set}statefromoptype._tooptype.pickle._ Any*ArrayandAny*DTypeforint_,float64andcomplex128don't includeint,float, andcomplexanymore. See https://github.com/numpy/numpy/issues/27032#issuecomment-2249308801 for why this was done.
Full Changelog: https://github.com/jorenham/optype/compare/v0.5.0...v0.6.0
- Python
Published by jorenham over 1 year ago
https://github.com/jorenham/optype - v0.5.0
Release highlights
optype.numpy: (optional) NumPy (1 & 2) typing protocols and aliases, see the docs the details- Implement PEP 696 type parameter defaults
*Selfaliases for the context managerCan*interfaces*Selfaliases for the inplace operandCanI*interfaces- Many documentation fixes & improvements
- Simplified local development using Tox
Breaking changes
typing_extensionsis now required for all Python versions <3.13
What's Changed
- bump basedpyright to 1.10.2 by @jorenham in https://github.com/jorenham/optype/pull/49
- bump ruff to 0.4.0 by @jorenham in https://github.com/jorenham/optype/pull/50
- bump basedpyright to 1.10.3 by @jorenham in https://github.com/jorenham/optype/pull/51
- bump ruff to 0.4.1 by @jorenham in https://github.com/jorenham/optype/pull/52
- use
repo-reviewandtoxby @jorenham in https://github.com/jorenham/optype/pull/53 - Fix example code formatting issues in README.md by @jorenham in https://github.com/jorenham/optype/pull/54
- Bump ruff from 0.4.1 to 0.4.2 by @dependabot in https://github.com/jorenham/optype/pull/56
- Bump basedpyright from 1.10.3 to 1.10.4 by @dependabot in https://github.com/jorenham/optype/pull/57
- Bump sp-repo-review from 2024.3.10 to 2024.4.23 by @dependabot in https://github.com/jorenham/optype/pull/58
- Bump pytest from 8.1.1 to 8.2.0 by @dependabot in https://github.com/jorenham/optype/pull/59
- Bump tox from 4.14.2 to 4.15.0 by @dependabot in https://github.com/jorenham/optype/pull/60
- Update development dependencies by @jorenham in https://github.com/jorenham/optype/pull/77
- Bump basedpyright to 1.12.6 by @jorenham in https://github.com/jorenham/optype/pull/79
- Improved pre-commit & markdownlint config by @jorenham in https://github.com/jorenham/optype/pull/80
- Use pre-commit within tox by @jorenham in https://github.com/jorenham/optype/pull/81
- Bump scientific-python/repo-review from 0.10.6 to 0.11.0 by @dependabot in https://github.com/jorenham/optype/pull/63
- Defaults for generic type parameters by @jorenham in https://github.com/jorenham/optype/pull/78
- Add
*Selfaliases for the augmented binopCanI*interfaces by @jorenham in https://github.com/jorenham/optype/pull/82 - Add missing overloads to
DoesI*inplace binary operator callable protocols by @jorenham in https://github.com/jorenham/optype/pull/83 - Bump ruff to 0.4.9 by @jorenham in https://github.com/jorenham/optype/pull/84
*Selfaliases for the unary arithmetic operand interfaces by @jorenham in https://github.com/jorenham/optype/pull/85- add
*Selfaliases for context manager interfaces by @jorenham in https://github.com/jorenham/optype/pull/86 - Prefer
typing_extensionsimports forProtocolandruntime_checkableby @jorenham in https://github.com/jorenham/optype/pull/87 - Test using beartype by @jorenham in https://github.com/jorenham/optype/pull/88
- bump basedpyright to 1.13.0 by @jorenham in https://github.com/jorenham/optype/pull/91
optype.numpy: interfaces and type-aliases for numpy by @jorenham in https://github.com/jorenham/optype/pull/55- Use the new basedpyright pre-commit hook by @jorenham in https://github.com/jorenham/optype/pull/92
- Bump ruff to 0.4.10 by @jorenham in https://github.com/jorenham/optype/pull/93
- Add the
optype.inspectmodule by @jorenham in https://github.com/jorenham/optype/pull/94
Full Changelog: https://github.com/jorenham/optype/compare/v0.4.0...v0.5.0
- Python
Published by jorenham over 1 year ago
https://github.com/jorenham/optype - v0.4.0
The minimum required Python version has been lowered from 3.12 to 3.10.
What's Changed
- Bump
basedpyrightto 1.10.0 by @jorenham in https://github.com/jorenham/optype/pull/41 - basedpyright badge by @jorenham in https://github.com/jorenham/optype/pull/42
- bump ruff to 0.3.7 and basedpyright to 1.10.1 by @jorenham in https://github.com/jorenham/optype/pull/43
- Add pypi classifiers and project urls by @jorenham in https://github.com/jorenham/optype/pull/44
- Add
CONTRIBUTING.mdandCODE_OF_CONDUCT.mdby @jorenham in https://github.com/jorenham/optype/pull/45 - Run markdownlint in the CI workflow by @jorenham in https://github.com/jorenham/optype/pull/46
- Support for Python 3.11 and 3.13 by @jorenham in https://github.com/jorenham/optype/pull/47
- Support for Python 3.10 by @jorenham in https://github.com/jorenham/optype/pull/48
Full Changelog: https://github.com/jorenham/optype/compare/v0.3.1...v0.4.0
- Python
Published by jorenham almost 2 years ago
https://github.com/jorenham/optype - v0.3.1
What's Changed
- Update pyright and pre-commit by @jorenham in https://github.com/jorenham/optype/pull/34
- Switch from pyright to basedpyright by @jorenham in https://github.com/jorenham/optype/pull/35
- Introductory usage example by @jorenham in https://github.com/jorenham/optype/pull/38
- Bump ruff from 0.3.4 to 0.3.5 by @dependabot in https://github.com/jorenham/optype/pull/37
- Post ruff upgrade tweaks by @jorenham in https://github.com/jorenham/optype/pull/39
Full Changelog: https://github.com/jorenham/optype/compare/v0.3.0...v0.3.1
- Python
Published by jorenham almost 2 years ago
https://github.com/jorenham/optype - v0.3.0
What's Changed
- Fix
CanAIterSelfnot being anAsyncGeneratorsubtype by @jorenham in https://github.com/jorenham/optype/pull/17 - upgrade pyright to 1.1.355 by @jorenham in https://github.com/jorenham/optype/pull/18
- several doc fixes and improvements by @jorenham in https://github.com/jorenham/optype/pull/27
- add ops for
__reversed__and__missing__by @jorenham in https://github.com/jorenham/optype/pull/28CanSequence[I: CanIndex, V](combinesCanLenandCanGetitem[I, V])do_reversed: DoesReversed(type-corrected alias forbuiltins.reversed)do_missing: DoesMissing(calls.__missing__())
- Interfaces for the
copystandard library by @jorenham in https://github.com/jorenham/optype/pull/29CanCopy[T]andCanCopySelfCanDeepcopy[T]andCanDeepcopySelfCanReplace[T, V]andCanReplaceSelf[V]
- Interfaces for the
picklestandard library by @jorenham in https://github.com/jorenham/optype/pull/30CanReduce[R: str | tuple]CanReduceEx[R: str | tuple]CanGetState[S]CanSetState[S]CanGetnewargs[*Args]CanGetnewargsEx[*Args, Kw]
- upgrade to ruff 0.3.4 by @jorenham in https://github.com/jorenham/optype/pull/31
- Interfaces for the
dataclassesstandard library by @jorenham in https://github.com/jorenham/optype/pull/32HasDataclassFields
Full Changelog: https://github.com/jorenham/optype/compare/v0.2.2...v0.3.0
- Python
Published by jorenham almost 2 years ago
https://github.com/jorenham/optype - v0.2.2
What's Changed
- fix incorrect
optype.do_neannotation by @jorenham in https://github.com/jorenham/optype/pull/10 - fix incorrect
optype.DoesIModannotation by @jorenham in https://github.com/jorenham/optype/pull/11 - upgrade to ruff 0.3.3 by @jorenham in https://github.com/jorenham/optype/pull/12
- add docstrings for some
Can*types by @jorenham in https://github.com/jorenham/optype/pull/13 - add
CanIterSelf[+V]andCanAIterSelf[+V]by @jorenham in https://github.com/jorenham/optype/pull/14 - add typed ops for
__len__and__length_hint__by @jorenham in https://github.com/jorenham/optype/pull/15
Full Changelog: https://github.com/jorenham/optype/compare/v0.2.1...v0.2.2
- Python
Published by jorenham almost 2 years ago
https://github.com/jorenham/optype - v0.2.1
What's Changed
- Bump pytest from 8.0.2 to 8.1.1 by @dependabot in https://github.com/jorenham/optype/pull/5
- Bump pyright to 1.1.354 by @jorenham in https://github.com/jorenham/optype/pull/6
- Configure markdownlint by @jorenham in https://github.com/jorenham/optype/pull/7
- Builtin type constructor operators by @jorenham in https://github.com/jorenham/optype/pull/8
do_bool: DoesBooldo_int: DoesIntdo_float: DoesFloatdo_complex: DoesComplexdo_bytes: DoesBytesdo_str: DoesStr
- Examples & integration tests by @jorenham in https://github.com/jorenham/optype/pull/9
- See the
examples/directory
- See the
New Contributors
- @dependabot made their first contribution in https://github.com/jorenham/optype/pull/5
Full Changelog: https://github.com/jorenham/optype/compare/v0.2.0...v0.2.1
- Python
Published by jorenham almost 2 years ago
https://github.com/jorenham/optype - v0.2.0
What's Changed
- add 72 operators as
optype.do_*, so thatoptype>operator - add callback protocols for the 72 operators as
optype.Does* - Many documentation improvements
- [BREAKING] renamed the async
CanA{name}types asCanA{Name}, improving readability - Fixed several minor typing issues
- Improved code quality of the tests
- Streamlined the CI workflow
- Upgrade ruff to 0.3.2, and tightened some rules
- Upgrade pyright to 1.1.353
Full Changelog: https://github.com/jorenham/optype/compare/v0.1.0...v0.2.0
- Python
Published by jorenham almost 2 years ago
https://github.com/jorenham/optype - v0.1.0
The official first release of optype 🎉.
What's Changed
- Everything 🎉
New Contributors
- @jorenham made their first contribution in https://github.com/jorenham/optype/pull/1
Full Changelog: https://github.com/jorenham/optype/commits/v0.1.0
- Python
Published by jorenham almost 2 years ago