Skip to content

Commit

Permalink
removed @DataClass
Browse files Browse the repository at this point in the history
removed func _missing_ for SchemeEntryType
  • Loading branch information
rekby committed Dec 8, 2023
1 parent 9183a9b commit c001439
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
* Fixed python2 compatibility

## 2.15.0 ##
* Fixed python2 compatibility

Expand Down
3 changes: 0 additions & 3 deletions ydb/_errors.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from dataclasses import dataclass

from . import issues

_errors_retriable_fast_backoff_types = [
Expand Down Expand Up @@ -56,7 +54,6 @@ def check_retriable_error(err, retry_settings, attempt):
return ErrorRetryInfo(False, None)


@dataclass
class ErrorRetryInfo:
def __init__(self, is_retriable, sleep_timeout_seconds=None):
self.is_retriable = is_retriable
Expand Down
4 changes: 0 additions & 4 deletions ydb/scheme.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,6 @@ class SchemeEntryType(enum.IntEnum):
REPLICATION = 16
TOPIC = 17

@classmethod
def _missing_(cls, value):
return cls.TYPE_UNSPECIFIED

@staticmethod
def is_table(entry):
"""
Expand Down

0 comments on commit c001439

Please sign in to comment.