Skip to content

Commit c8de94a

Browse files
author
Peng Ren
committed
Correct code style
1 parent 7283132 commit c8de94a

3 files changed

Lines changed: 26 additions & 14 deletions

File tree

.flake8

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
[flake8]
2-
max-line-length = 120
2+
max-line-length = 120
3+
exclude = */partiql/*.py

pymongosql/common.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# -*- coding: utf-8 -*-
22
import logging
33
from abc import ABCMeta, abstractmethod
4-
from typing import TYPE_CHECKING, Any, Dict, List, Optional, Tuple, Union
4+
from typing import TYPE_CHECKING, Any, Dict, List, Optional, Tuple
55

6-
from .error import ProgrammingError, OperationalError
6+
from .error import ProgrammingError
77

88
if TYPE_CHECKING:
99
from .connection import Connection

pymongosql/error.py

Lines changed: 22 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,34 +13,45 @@
1313
]
1414

1515

16-
class Error(Exception): ...
16+
class Error(Exception):
17+
pass
1718

1819

19-
class Warning(Exception): ...
20+
class Warning(Exception):
21+
pass
2022

2123

22-
class SqlSyntaxError(Error): ...
24+
class SqlSyntaxError(Error):
25+
pass
2326

2427

25-
class InterfaceError(Error): ...
28+
class InterfaceError(Error):
29+
pass
2630

2731

28-
class DatabaseError(Error): ...
32+
class DatabaseError(Error):
33+
pass
2934

3035

31-
class InternalError(DatabaseError): ...
36+
class InternalError(DatabaseError):
37+
pass
3238

3339

34-
class OperationalError(DatabaseError): ...
40+
class OperationalError(DatabaseError):
41+
pass
3542

3643

37-
class ProgrammingError(DatabaseError): ...
44+
class ProgrammingError(DatabaseError):
45+
pass
3846

3947

40-
class IntegrityError(DatabaseError): ...
48+
class IntegrityError(DatabaseError):
49+
pass
4150

4251

43-
class DataError(DatabaseError): ...
52+
class DataError(DatabaseError):
53+
pass
4454

4555

46-
class NotSupportedError(DatabaseError): ...
56+
class NotSupportedError(DatabaseError):
57+
pass

0 commit comments

Comments
 (0)