Skip to content

Commit

Permalink
temporary fix to suppress an error in doc build with qiskit 0.45
Browse files Browse the repository at this point in the history
  • Loading branch information
itoko committed Oct 26, 2023
1 parent b04681d commit d707f5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/_ext/custom_styles/option_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ def _value_repr(value: Any) -> str:
return f"{{{dict_repr}}}"
if value.__class__.__module__ == "builtins":
return f":obj:`{value}`"
if value.__class__.__module__.startswith("qiskit"):
if value.__class__.__module__ and value.__class__.__module__.startswith("qiskit"):
return f"Instance of :class:`.{value.__class__.__name__}`"
if callable(value):
return f"Callable :func:`{value.__name__}`"
Expand Down

0 comments on commit d707f5c

Please sign in to comment.