Skip to content

Commit

Permalink
fix(python): Convert tabs to spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
booniepepper committed Aug 1, 2023
1 parent 778f3e8 commit eb7d718
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 16 deletions.
8 changes: 4 additions & 4 deletions config/clients/python/template/api_test.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -545,10 +545,10 @@ class {{#operations}}Test{{classname}}(IsolatedAsyncioTestCase):
],
),
),
writer=Userset(
writer=Userset(
this=dict(),
),
)
)
)
]
authorization_model = AuthorizationModel(id='01G5JAVJ41T49E9TT3SKVS7X1J', schema_version = "1.1",
Expand Down Expand Up @@ -768,7 +768,7 @@ class {{#operations}}Test{{classname}}(IsolatedAsyncioTestCase):
TypeDefinition(
type="document",
relations=dict(
writer=Userset(
writer=Userset(
this=dict(),
),
reader=Userset(
Expand All @@ -782,7 +782,7 @@ class {{#operations}}Test{{classname}}(IsolatedAsyncioTestCase):
],
),
),
)
)
),
],
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ class ClientListObjectsRequest():
"""

def __init__(self, user: str, relation: str, type: str, contextual_tuples: List[ClientTuple]=None):
self._user = user
self._user = user
self._relation = relation
self._type = type
self._contextual_tuples = contextual_tuples
self._contextual_tuples = contextual_tuples

@property
def user(self):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ class ClientListRelationsRequest():
"""

def __init__(self, user: str, relations: List[str], object: str, contextual_tuples: List[ClientTuple]=None):
self._user = user
self._user = user
self._relations = relations
self._object = object
self._contextual_tuples = contextual_tuples
self._contextual_tuples = contextual_tuples

@property
def user(self):
Expand Down
8 changes: 4 additions & 4 deletions config/clients/python/template/client/models/tuple.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,11 @@ class ClientTuple():
self._object = value

@property
def tuple_key(self):
"""
Return the tuple as tuple_key
def tuple_key(self):
"""
return TupleKey(
Return the tuple as tuple_key
"""
return TupleKey(
object=self.object,
relation=self.relation,
user=self.user,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ class ClientWriteSingleResponse():
ClientWriteSingleResponse encapsulates the response of a single write
"""

def __init__(self, tuple_key: ClientTuple, success: bool, error: Exception=None):
self._tuple_key = tuple_key
self._success = success
self._error = error
def __init__(self, tuple_key: ClientTuple, success: bool, error: Exception=None):
self._tuple_key = tuple_key
self._success = success
self._error = error

def __eq__(self, other):
return self.tuple_key == other.tuple_key and self.success == other.success and self.error == other.error
Expand Down

0 comments on commit eb7d718

Please sign in to comment.