Skip to content

Commit

Permalink
RM-96 use abstractmethod decorator
Browse files Browse the repository at this point in the history
  • Loading branch information
ryantimjohn committed Aug 2, 2023
1 parent a591022 commit 5a2c74a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions records_mover/records/table.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from abc import ABCMeta
from abc import ABCMeta, abstractmethod
from sqlalchemy.engine import Engine, Connection
from typing import Union, Optional, Dict, List
from records_mover.records.existing_table_handling import ExistingTableHandling
Expand All @@ -23,9 +23,9 @@ class TargetTableDetails(metaclass=ABCMeta):
# Unfortunately it also gets confused by @abstractmethod.
#
# https://github.com/python/mypy/issues/5485
# @abstractmethod
@abstractmethod
def db_driver(self,
db: Optional[Union[Engine, Connection]],
db_engine: Optional[Engine],
db_conn: Optional[Connection]) -> DBDriver: # type: ignore
db_conn: Optional[Connection]) -> DBDriver:
...

0 comments on commit 5a2c74a

Please sign in to comment.