Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Mar 22, 2021
1 parent b350b2c commit 8a6f473
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
7 changes: 2 additions & 5 deletions chemistry_tools/pubchem/enums.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,9 @@
# stdlib
from typing import Any

# this package
# 3rd party
from enum_tools import IntEnum, StrEnum


class PubChemNamespace(StrEnum):
CID = Cid = cid = "cid"
Name = NAME = name = "name"
Expand All @@ -38,13 +37,12 @@ class PubChemNamespace(StrEnum):
@classmethod
def is_valid_value(cls, value: Any) -> bool: ...


# @document_enum

class PubChemFormats(StrEnum):
"""
Enum of supported formats for the PubChem REST API.
"""

JSON = Json = json = "JSON"
XML = Xml = xml = "XML"
CSV = csv = Csv = "CSV"
Expand All @@ -55,7 +53,6 @@ class PubChemFormats(StrEnum):
@classmethod
def is_valid_value(cls, value: Any) -> bool: ...


class CoordinateType(IntEnum):
TWO_D = ...
THREE_D = ...
Expand Down
2 changes: 1 addition & 1 deletion chemistry_tools/pubchem/errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ def __init__(self, msg="The request timed out"):
self.msg = msg


TimeoutError = HTTPTimeoutError # noqa: A001
TimeoutError = HTTPTimeoutError # noqa: A001 # pylint: disable=redefined-builtin


class UnimplementedError(PubChemHTTPError):
Expand Down

0 comments on commit 8a6f473

Please sign in to comment.