Skip to content

Commit 4f6cd6f

Browse files
authored
Merge pull request #1274 from dbcli/RW/no-inherit-from-object
No need to inherit from `object`
2 parents 44ec3a9 + 7aa78b9 commit 4f6cd6f

5 files changed

Lines changed: 5 additions & 5 deletions

File tree

mycli/completion_refresher.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from mycli.sqlexecute import ServerSpecies, SQLExecute
99

1010

11-
class CompletionRefresher(object):
11+
class CompletionRefresher:
1212
refreshers = OrderedDict()
1313

1414
def __init__(self):

mycli/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ class PasswordFileError(Exception):
7575
"""Base exception for errors related to reading password files."""
7676

7777

78-
class MyCli(object):
78+
class MyCli:
7979
default_prompt = "\\t \\u@\\h:\\d> "
8080
default_prompt_splitln = "\\u@\\h\\n(\\t):\\d>"
8181
max_len_prompt = 45

mycli/packages/special/delimitercommand.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import sqlparse # type: ignore[import-untyped]
77

88

9-
class DelimiterCommand(object):
9+
class DelimiterCommand:
1010
def __init__(self) -> None:
1111
self._delimiter = ";"
1212

mycli/sqlexecute.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def __str__(self):
8080
return self.version_str
8181

8282

83-
class SQLExecute(object):
83+
class SQLExecute:
8484
databases_query = """SHOW DATABASES"""
8585

8686
tables_query = """SHOW TABLES"""

test/test_tabular_output.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def test_sql_output(mycli):
2323
"""Test the sql output adapter."""
2424
headers = ["letters", "number", "optional", "float", "binary"]
2525

26-
class FakeCursor(object):
26+
class FakeCursor:
2727
def __init__(self):
2828
self.data = [("abc", 1, None, 10.0, b"\xaa"), ("d", 456, "1", 0.5, b"\xaa\xbb")]
2929
self.description = [

0 commit comments

Comments
 (0)