quantumlib / Stim

A fast stabilizer circuit library.
Apache License 2.0
305 stars 88 forks source link

Small typing issue in the Python method `CircuitRepeatBlock.name` #776

Closed nelimee closed 4 weeks ago

nelimee commented 1 month ago

The method below

https://github.com/quantumlib/Stim/blob/985d6a7042229827473d620d539119e3dbe0946e/glue/python/src/stim/__init__.pyi#L2840-L2861

is guaranteed to return "REPEAT" per the docstring. Nevertheless, its annotated return type is object, that is not invalid per-se but is not as precise as it should be (i.e., str).