Skip to content

Commit 0240899

Browse files
author
Vignesh Kennadi
committed
Initial Changes
1 parent fb5f6e6 commit 0240899

File tree

12 files changed

+112
-111
lines changed

12 files changed

+112
-111
lines changed

Diff for: setup.cfg

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ universal = 1
55
# Recommend matching the black line length (default 88),
66
# rather than using the flake8 default of 79:
77
max-line-length = 88
8+
ignore = E741, E501, F401, W503
89
exclude=
910
cassettes,
1011
extend-ignore =

Diff for: xero_python/accounting/api/accounting_api.py

+11-11
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
# coding: utf-8
22

3+
import importlib
4+
import re # noqa: F401
5+
6+
from xero_python import exceptions
7+
from xero_python.api_client import ApiClient, ModelFinder
8+
9+
try:
10+
from .exception_handler import translate_status_exception
11+
except ImportError:
12+
translate_status_exception = exceptions.translate_status_exception
13+
314
"""
415
Xero Accounting API
516

@@ -13,17 +24,6 @@
1324
OpenAPI spec version: 6.2.0
1425
"""
1526

16-
import importlib
17-
import re # noqa: F401
18-
19-
from xero_python import exceptions
20-
from xero_python.api_client import ApiClient, ModelFinder
21-
22-
try:
23-
from .exception_handler import translate_status_exception
24-
except ImportError:
25-
translate_status_exception = exceptions.translate_status_exception
26-
2727

2828
class empty:
2929
"""empty object to mark optional parameter not set"""

Diff for: xero_python/api_client/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ def __deserialize(self, data, klass, model_finder):
258258
if data is None:
259259
return None
260260

261-
if type(klass) == str:
261+
if isinstance(klass, str):
262262
if klass.startswith("list["):
263263
sub_kls = re.match(r"list\[(.*)\]", klass).group(1)
264264
return [

Diff for: xero_python/appstore/api/app_store_api.py

+11-11
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
# coding: utf-8
22

3+
import importlib
4+
import re # noqa: F401
5+
6+
from xero_python import exceptions
7+
from xero_python.api_client import ApiClient, ModelFinder
8+
9+
try:
10+
from .exception_handler import translate_status_exception
11+
except ImportError:
12+
translate_status_exception = exceptions.translate_status_exception
13+
314
"""
415
Xero AppStore API
516
@@ -13,17 +24,6 @@
1324
OpenAPI spec version: 6.2.0
1425
"""
1526

16-
import importlib
17-
import re # noqa: F401
18-
19-
from xero_python import exceptions
20-
from xero_python.api_client import ApiClient, ModelFinder
21-
22-
try:
23-
from .exception_handler import translate_status_exception
24-
except ImportError:
25-
translate_status_exception = exceptions.translate_status_exception
26-
2727

2828
class empty:
2929
"""empty object to mark optional parameter not set"""

Diff for: xero_python/assets/api/asset_api.py

+11-11
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
# coding: utf-8
22

3+
import importlib
4+
import re # noqa: F401
5+
6+
from xero_python import exceptions
7+
from xero_python.api_client import ApiClient, ModelFinder
8+
9+
try:
10+
from .exception_handler import translate_status_exception
11+
except ImportError:
12+
translate_status_exception = exceptions.translate_status_exception
13+
314
"""
415
Xero Assets API
516
@@ -13,17 +24,6 @@
1324
OpenAPI spec version: 6.2.0
1425
"""
1526

16-
import importlib
17-
import re # noqa: F401
18-
19-
from xero_python import exceptions
20-
from xero_python.api_client import ApiClient, ModelFinder
21-
22-
try:
23-
from .exception_handler import translate_status_exception
24-
except ImportError:
25-
translate_status_exception = exceptions.translate_status_exception
26-
2727

2828
class empty:
2929
"""empty object to mark optional parameter not set"""

Diff for: xero_python/file/api/files_api.py

+11-11
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
# coding: utf-8
22

3+
import importlib
4+
import re # noqa: F401
5+
6+
from xero_python import exceptions
7+
from xero_python.api_client import ApiClient, ModelFinder
8+
9+
try:
10+
from .exception_handler import translate_status_exception
11+
except ImportError:
12+
translate_status_exception = exceptions.translate_status_exception
13+
314
"""
415
Xero Files API
516
@@ -13,17 +24,6 @@
1324
OpenAPI spec version: 6.2.0
1425
"""
1526

16-
import importlib
17-
import re # noqa: F401
18-
19-
from xero_python import exceptions
20-
from xero_python.api_client import ApiClient, ModelFinder
21-
22-
try:
23-
from .exception_handler import translate_status_exception
24-
except ImportError:
25-
translate_status_exception = exceptions.translate_status_exception
26-
2727

2828
class empty:
2929
"""empty object to mark optional parameter not set"""

Diff for: xero_python/finance/api/finance_api.py

+11-11
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
# coding: utf-8
22

3+
import importlib
4+
import re # noqa: F401
5+
6+
from xero_python import exceptions
7+
from xero_python.api_client import ApiClient, ModelFinder
8+
9+
try:
10+
from .exception_handler import translate_status_exception
11+
except ImportError:
12+
translate_status_exception = exceptions.translate_status_exception
13+
314
"""
415
Xero Finance API
516
@@ -13,17 +24,6 @@
1324
OpenAPI spec version: 6.2.0
1425
"""
1526

16-
import importlib
17-
import re # noqa: F401
18-
19-
from xero_python import exceptions
20-
from xero_python.api_client import ApiClient, ModelFinder
21-
22-
try:
23-
from .exception_handler import translate_status_exception
24-
except ImportError:
25-
translate_status_exception = exceptions.translate_status_exception
26-
2727

2828
class empty:
2929
"""empty object to mark optional parameter not set"""

Diff for: xero_python/identity/api/identity_api.py

+11-11
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
# coding: utf-8
22

3+
import importlib
4+
import re # noqa: F401
5+
6+
from xero_python import exceptions
7+
from xero_python.api_client import ApiClient, ModelFinder
8+
9+
try:
10+
from .exception_handler import translate_status_exception
11+
except ImportError:
12+
translate_status_exception = exceptions.translate_status_exception
13+
314
"""
415
Xero OAuth 2 Identity Service API
516
@@ -13,17 +24,6 @@
1324
OpenAPI spec version: 6.2.0
1425
"""
1526

16-
import importlib
17-
import re # noqa: F401
18-
19-
from xero_python import exceptions
20-
from xero_python.api_client import ApiClient, ModelFinder
21-
22-
try:
23-
from .exception_handler import translate_status_exception
24-
except ImportError:
25-
translate_status_exception = exceptions.translate_status_exception
26-
2727

2828
class empty:
2929
"""empty object to mark optional parameter not set"""

Diff for: xero_python/payrollau/api/payroll_au_api.py

+11-11
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
# coding: utf-8
22

3+
import importlib
4+
import re # noqa: F401
5+
6+
from xero_python import exceptions
7+
from xero_python.api_client import ApiClient, ModelFinder
8+
9+
try:
10+
from .exception_handler import translate_status_exception
11+
except ImportError:
12+
translate_status_exception = exceptions.translate_status_exception
13+
314
"""
415
Xero Payroll AU API
516
@@ -13,17 +24,6 @@
1324
OpenAPI spec version: 6.2.0
1425
"""
1526

16-
import importlib
17-
import re # noqa: F401
18-
19-
from xero_python import exceptions
20-
from xero_python.api_client import ApiClient, ModelFinder
21-
22-
try:
23-
from .exception_handler import translate_status_exception
24-
except ImportError:
25-
translate_status_exception = exceptions.translate_status_exception
26-
2727

2828
class empty:
2929
"""empty object to mark optional parameter not set"""

Diff for: xero_python/payrollnz/api/payroll_nz_api.py

+11-11
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
# coding: utf-8
22

3+
import importlib
4+
import re # noqa: F401
5+
6+
from xero_python import exceptions
7+
from xero_python.api_client import ApiClient, ModelFinder
8+
9+
try:
10+
from .exception_handler import translate_status_exception
11+
except ImportError:
12+
translate_status_exception = exceptions.translate_status_exception
13+
314
"""
415
Xero Payroll NZ
516
@@ -13,17 +24,6 @@
1324
OpenAPI spec version: 6.2.0
1425
"""
1526

16-
import importlib
17-
import re # noqa: F401
18-
19-
from xero_python import exceptions
20-
from xero_python.api_client import ApiClient, ModelFinder
21-
22-
try:
23-
from .exception_handler import translate_status_exception
24-
except ImportError:
25-
translate_status_exception = exceptions.translate_status_exception
26-
2727

2828
class empty:
2929
"""empty object to mark optional parameter not set"""

Diff for: xero_python/payrolluk/api/payroll_uk_api.py

+11-11
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
# coding: utf-8
22

3+
import importlib
4+
import re # noqa: F401
5+
6+
from xero_python import exceptions
7+
from xero_python.api_client import ApiClient, ModelFinder
8+
9+
try:
10+
from .exception_handler import translate_status_exception
11+
except ImportError:
12+
translate_status_exception = exceptions.translate_status_exception
13+
314
"""
415
Xero Payroll UK
516
@@ -13,17 +24,6 @@
1324
OpenAPI spec version: 6.2.0
1425
"""
1526

16-
import importlib
17-
import re # noqa: F401
18-
19-
from xero_python import exceptions
20-
from xero_python.api_client import ApiClient, ModelFinder
21-
22-
try:
23-
from .exception_handler import translate_status_exception
24-
except ImportError:
25-
translate_status_exception = exceptions.translate_status_exception
26-
2727

2828
class empty:
2929
"""empty object to mark optional parameter not set"""

Diff for: xero_python/project/api/project_api.py

+11-11
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
# coding: utf-8
22

3+
import importlib
4+
import re # noqa: F401
5+
6+
from xero_python import exceptions
7+
from xero_python.api_client import ApiClient, ModelFinder
8+
9+
try:
10+
from .exception_handler import translate_status_exception
11+
except ImportError:
12+
translate_status_exception = exceptions.translate_status_exception
13+
314
"""
415
Xero Projects API
516
@@ -13,17 +24,6 @@
1324
OpenAPI spec version: 6.2.0
1425
"""
1526

16-
import importlib
17-
import re # noqa: F401
18-
19-
from xero_python import exceptions
20-
from xero_python.api_client import ApiClient, ModelFinder
21-
22-
try:
23-
from .exception_handler import translate_status_exception
24-
except ImportError:
25-
translate_status_exception = exceptions.translate_status_exception
26-
2727

2828
class empty:
2929
"""empty object to mark optional parameter not set"""

0 commit comments

Comments
 (0)