Skip to content

Commit

Permalink
Fix pycodstyle warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
ogolovatyi authored and ogolovatyi committed Mar 28, 2019
1 parent da68563 commit 78a85ec
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tabpy-tools/tabpy_tools/rest_client.py
Expand Up @@ -122,6 +122,7 @@ def __init__(self, **kwargs):
super(AliasEndpoint, self).__init__(**kwargs)
self.type = 'alias'


class RESTServiceClient(object):
"""A thin client for the REST Service."""

Expand All @@ -141,10 +142,9 @@ def query(self, name, *args, **kwargs):
'Mixing of keyword arguments and positional arguments '
'when querying an endpoint is not supported.')
return self.service_client.POST('query/'+name,
data={'data':args or kwargs},
data={'data': args or kwargs},
timeout=self.query_timeout)


def get_endpoint_upload_destination(self):
"""Returns a dict representing where endpoint data should be uploaded.
Expand Down
2 changes: 1 addition & 1 deletion tabpy-tools/tabpy_tools/schema.py
Expand Up @@ -99,7 +99,7 @@ def generate_schema(input, output, input_description=None, output_description=No
'properties': {'y': {'type': 'integer', 'description': 'value of y'},
'x': {'type': 'integer', 'description': 'value of x'}}},
'output': {'type': 'integer', 'description': 'x times y'}}
''' # noqa: E501
''' # noqa: E501
input_schema = _generate_schema_from_example_and_description(
input, input_description)
output_schema = _generate_schema_from_example_and_description(
Expand Down
2 changes: 1 addition & 1 deletion tabpy-tools/tools_tests/test_rest_object.py
Expand Up @@ -38,7 +38,7 @@ class FooObject(RESTObject):
self.assertEqual(set(f.keys()), set(['f', 'i', 's']))
self.assertEqual(set(f.values()), set([6.0, 3, "hello!"]))
self.assertEqual(set(f.items()), set(
[('f',6.0),('i',3), ('s',"hello!")]))
[('f', 6.0), ('i', 3), ('s', "hello!")]))

f.e = "a"
self.assertEqual(f.e, "a")
Expand Down

0 comments on commit 78a85ec

Please sign in to comment.