Skip to content

Commit

Permalink
fixing more pydantic errors
Browse files Browse the repository at this point in the history
  • Loading branch information
kessler-frost committed Sep 8, 2023
1 parent dab6c71 commit 9760f5f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion covalent/_shared_files/qinfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class QElectronInfo(BaseModel):
"""

name: str
description: str = None
description: Optional[str] = None
device_name: str # name of the original device, e.g. "default.qubit"
device_import_path: str # used to inherit type converters and other methods
device_shots: Union[
Expand Down
4 changes: 2 additions & 2 deletions covalent/quantum/qserver/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
import datetime
import importlib
from functools import lru_cache
from typing import Any, Dict, List, Union
from typing import Any, Dict, List, Optional, Union

import orjson
from pydantic import BaseModel
Expand All @@ -37,7 +37,7 @@ class CircuitInfo(BaseModel):
electron_node_id: int = None
dispatch_id: str = None
circuit_name: str = None
circuit_description: str = None
circuit_description: Optional[str] = None
circuit_diagram: str = None
qnode_specs: Union[Dict[str, Any], QNodeSpecs] = None
qexecutor: BaseQExecutor = None
Expand Down

0 comments on commit 9760f5f

Please sign in to comment.