Open malsyned opened 8 months ago
I think this change is a superset of #529 and contains all of those fixes.
The PR contains at least a serious fix to total_cost type, which is a showstopper at implementing an OCPP2 server compliant with pricing regulation with that library. The rest of PR is also refining properly a bunch of types definition.
I rebased this so it will merge cleanly with master
, and added the suggested additional type fix from @jerome-benoit. This should be good to go now.
I groveled through the v2.0.1 spec and updated all of the type signatures to be complete and accurate to the best of my ability.
I did this to support some work I'm doing to make a variant of
@on
that converts the JSON back to Python objects, but I think it will be useful to anyone using the library with an IDE, so I'm submitting it as a separate pull request.