c3 icon indicating copy to clipboard operation
c3 copied to clipboard

Typing of functions with Quantity arguments

Open GlaserN opened this issue 4 years ago • 0 comments

Describe the bug Typing of most objects requiring Quantity objects is wrong, requiring mostly float by itself. In order to get the right typing behavior a way should be found to either associate Quantity objects as float/array or let the methods require Quantity objects in the first place.

Example of the code: https://github.com/q-optimize/c3/blob/ef9533008dccbcb23810e1e7396f85b5f200da15/c3/system/chip.py#L57-L89

Related: https://github.com/shaimach/c3po/issues/6 and https://github.com/shaimach/c3po/issues/58

GlaserN avatar Jan 29 '21 13:01 GlaserN