Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make ruff happy #757

Merged
merged 2 commits into from
May 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading