Skip to content

Commit

Permalink
fix: add docstring in FlagMeta
Browse files Browse the repository at this point in the history
  • Loading branch information
changsookim committed Oct 16, 2024
1 parent 08107cd commit 5d260e3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/qibo/transpiler/unroller.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@


class FlagMeta(EnumMeta):
def __getitem__(self, keys):
"""Metaclass for :class:`qibo.transpiler.unroller.NativeGates` that allows initialization with a list of gate name strings."""

def __getitem__(cls, keys):
if isinstance(keys, str):
return super().__getitem__(keys)

Expand Down

0 comments on commit 5d260e3

Please sign in to comment.