Skip to content

Commit

Permalink
Make ruff happy (#757)
Browse files Browse the repository at this point in the history
* Make ruff happy

This should not be necessary. See #756

* make ruff happy
  • Loading branch information
cmungall authored May 8, 2024
1 parent 137e5ef commit 509d9ec
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/oaklib/io/streaming_writer.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import atexit
import logging
import sys
from abc import ABC
from dataclasses import dataclass, field
from typing import Any, ClassVar, Dict, Iterable, List, Mapping, Optional, Type, Union

Expand All @@ -20,7 +19,7 @@


@dataclass
class StreamingWriter(ABC):
class StreamingWriter:
"""
Base class for streaming writers.
"""
Expand Down
3 changes: 2 additions & 1 deletion src/oaklib/utilities/publication_utils/pubdb_wrapper.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from abc import ABC
from abc import ABC, abstractmethod
from dataclasses import dataclass, field
from typing import ClassVar, Dict, List, Optional

Expand Down Expand Up @@ -32,5 +32,6 @@ def set_cache(self, name: str) -> None:
self.session = requests_cache.CachedSession(name)
self._uses_cache = True

@abstractmethod
def objects_by_ids(self, object_ids: List[str]) -> List[Dict]:
raise NotImplementedError

0 comments on commit 509d9ec

Please sign in to comment.