Skip to content

Commit

Permalink
Fix lints
Browse files Browse the repository at this point in the history
  • Loading branch information
Celeo committed Nov 11, 2023
1 parent b698eba commit 347f34b
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions preston/preston.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import base64
from dataclasses import dataclass
import re
import time
from typing import Optional, Tuple, Any, Union
Expand Down Expand Up @@ -226,7 +225,7 @@ def _get_spec(self) -> dict:
If the spec has already been fetched, the cached version is returned instead.
ArgS:
Args:
None
Returns:
Expand All @@ -244,7 +243,7 @@ def _get_path_for_op_id(self, id: str) -> Optional[str]:
id: operation id
Returns:
path to the endpoint, or None if not found
path to the endpoint, or `None` if not found
"""
for path_key, path_value in self._get_spec()["paths"].items():
for method in self.METHODS:
Expand Down Expand Up @@ -324,9 +323,12 @@ def get_path(self, path: str, data: dict) -> Tuple[dict, dict]:
def get_op(self, id: str, **kwargs: str) -> dict:
"""Queries the ESI by looking up an operation id.
Endpoints are cached, so calls to this method
for the same op and args will return the data
from the cache instead of making the API call.
Endpoints are cached, so calls to this method for the
same op and args will return the data from the cache
instead of making the API call.
Passed kwargs will first supply parameters in the URL,
and then unused items will be used as query params.
Args:
id: operation id
Expand Down

0 comments on commit 347f34b

Please sign in to comment.