jorenham / optype

Opinionated typing package for precise type hints in Python
BSD 3-Clause "New" or "Revised" License
13 stars 0 forks source link

Move `optype.HasDataclassFields` to the new `optype.dataclasses` namespace #122

Closed jorenham closed 3 months ago

jorenham commented 3 months ago

[!IMPORTANT] This is a backwards-incompatible breaking change!

This moves the following runtime-protocols from optype to optype.dataclasses:

[!NOTE] The optype.dataclasses module is exported through optype. So import optype as opt will allow you to access e.g. opt.dataclasses.HasDataclassFields.