mirror of
https://github.com/NicolasBohn/NexQuant.git
synced 2026-08-05 19:17:43 +00:00
CI checks that can be automatically repaired (#119)
* fix isort & black & toml-sort & sphinx error * fix ci error * fix ci error * add comments * Update Makefile * change sphinx build command * add auto-lint * add black args * format with black * Auto Linting document * fix ci error --------- Co-authored-by: you-n-g <you-n-g@users.noreply.github.com> Co-authored-by: Young <afe.young@gmail.com>
This commit is contained in:
@@ -18,6 +18,7 @@ class SingletonBaseClass:
|
||||
Because we try to support defining Singleton with `class A(SingletonBaseClass)`
|
||||
instead of `A(metaclass=SingletonMeta)` this class becomes necessary.
|
||||
"""
|
||||
|
||||
_instance_dict: ClassVar[dict] = {}
|
||||
|
||||
def __new__(cls, *args: Any, **kwargs: Any) -> Any:
|
||||
@@ -34,7 +35,6 @@ class SingletonBaseClass:
|
||||
return cls._instance_dict[kwargs_hash]
|
||||
|
||||
|
||||
|
||||
def parse_json(response: str) -> Any:
|
||||
try:
|
||||
return json.loads(response)
|
||||
|
||||
Reference in New Issue
Block a user