Skip to content

Commit 1bf7fc0

Browse files
authored
Merge pull request #381 fixed python2 compatibility
2 parents 9183a9b + a89793b commit 1bf7fc0

File tree

4 files changed

+2
-15
lines changed

4 files changed

+2
-15
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
* Fixed python2 compatibility
2+
13
## 2.15.0 ##
24
* Fixed python2 compatibility
35

ydb/_errors.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
from dataclasses import dataclass
2-
31
from . import issues
42

53
_errors_retriable_fast_backoff_types = [
@@ -56,7 +54,6 @@ def check_retriable_error(err, retry_settings, attempt):
5654
return ErrorRetryInfo(False, None)
5755

5856

59-
@dataclass
6057
class ErrorRetryInfo:
6158
def __init__(self, is_retriable, sleep_timeout_seconds=None):
6259
self.is_retriable = is_retriable

ydb/scheme.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,6 @@ class SchemeEntryType(enum.IntEnum):
2525
REPLICATION = 16
2626
TOPIC = 17
2727

28-
@classmethod
29-
def _missing_(cls, value):
30-
return cls.TYPE_UNSPECIFIED
31-
3228
@staticmethod
3329
def is_table(entry):
3430
"""

ydb/scheme_test.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,6 @@ def test_wrap_scheme_entry():
1515
assert (
1616
_wrap_scheme_entry(ydb_scheme.Entry()).type is SchemeEntryType.TYPE_UNSPECIFIED
1717
)
18-
assert (
19-
_wrap_scheme_entry(ydb_scheme.Entry(type=10)).type
20-
is SchemeEntryType.TYPE_UNSPECIFIED
21-
)
22-
assert (
23-
_wrap_scheme_entry(ydb_scheme.Entry(type=1001)).type
24-
is SchemeEntryType.TYPE_UNSPECIFIED
25-
)
2618

2719

2820
def test_wrap_list_directory_response():

0 commit comments

Comments
 (0)