This is a light release with a few enhancements/bug fixes for pg.typing
and pg.symbolic
.
Enhancements
-
pg.typing
pg.typing.Object
,pg.typing.Type
and type converters support Generic
annotations. (4eabef3)
pg.Object
now supports Callable[<input-type>, <output-type>]
and Dict[str, <value-type>]
annotations. (ab4a850)
-
pg.symbolic
- Introducing
pg.use_init_args
for reordering the init arguments for the subclasses of pg.Object
. (627990e)
Bug Fixes:
-
pg.typing
Tuple[<elem_type>, ...]
now can be correctly recognized. (9e2a772)
-
pg.symbolic
pg.eq
and pg.ne
will no longer evaluate contextual value during member comparisons. (77a4bb1)
pg.diff(x, y, mode='diff')
will return pg.Diff(left=pg.Diff.MISSING, right=pg.Diff.MISSING)
when x
== y
, whose string representation is 'No diff'. (e31fa99)