Skip to content

Commit

Permalink
clang format
Browse files Browse the repository at this point in the history
  • Loading branch information
Xinyu Li committed Jan 22, 2024
1 parent c72a6a4 commit b32a972
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
12 changes: 6 additions & 6 deletions python/ionpy/Param.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@

class Param:
def __init__(self,
key: Optional[str] = None,
val: Any = None,
# -- or
obj_: Optional[c_ion_param_t] = None,
):
key: Optional[str] = None,
val: Any = None,
# -- or
obj_: Optional[c_ion_param_t] = None,
):
if obj_ is None:
obj_ = c_ion_param_t()
if isinstance(val, bool):
Expand All @@ -29,5 +29,5 @@ def __init__(self,
self.obj = obj_

def __del__(self):
if self.obj: # check not nullptr
if self.obj: # check not nullptr
ion_param_destroy(self.obj)
1 change: 0 additions & 1 deletion python/test/test_param.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@


def test_param():

p1 = Param(key='iamkey1', val="IAMKEY") # 'IAMKEY'
p2 = Param(key='iamkey2', val="iamkey") # 'iamkey'
p3 = Param(key='iamkey3', val=1) # '1'
Expand Down

0 comments on commit b32a972

Please sign in to comment.