Skip to content

Commit

Permalink
remove use of deprecated abstractclassmethod
Browse files Browse the repository at this point in the history
  • Loading branch information
AdeelH committed Apr 4, 2024
1 parent 767213b commit c2bf5ff
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions rastervision_core/rastervision/core/data/label/labels.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""Defines the abstract Labels class."""

from typing import TYPE_CHECKING, Any, Iterable, List
from abc import (ABC, abstractclassmethod, abstractmethod)
from abc import ABC, abstractmethod

if TYPE_CHECKING:
from typing import Self
Expand Down Expand Up @@ -40,7 +40,8 @@ def __eq__(self, other: 'Labels'):
def __setitem__(self, key, value):
pass

@abstractclassmethod
@classmethod
@abstractmethod
def make_empty(cls) -> 'Self':
"""Instantiate an empty instance of this class.
Expand Down

0 comments on commit c2bf5ff

Please sign in to comment.