Skip to content

Commit

Permalink
build.py: call 'cythonize' with compiler_directives={'always_allow_ke…
Browse files Browse the repository at this point in the history
…ywords': True} to allows passing arguments by keywords for single-argument functions
  • Loading branch information
Marek committed Dec 4, 2023
1 parent dd73d12 commit 299a3d4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion python/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,8 @@ def build(setup_kwargs: dict[str, Any]) -> None:
"wax", ["wax.pyx"],
include_dirs=['.', './..'],
), # There has to be at least one extension, instead CustomBuild.run won't be called
]
],
compiler_directives={'always_allow_keywords': True}
),
"cmdclass": {"build_ext": CustomBuild},
}
Expand Down
2 changes: 1 addition & 1 deletion python/tests/protocol/test_get_tapos_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
def test_get_tapos_data():
block_id = API_REF_HF_BLOCK["previous"]
transaction = API_REF_HF_BLOCK["transactions"][2]
tapos = get_tapos_data(block_id.encode())
tapos = get_tapos_data(block_id=block_id.encode())
assert tapos.ref_block_num == transaction["ref_block_num"]
assert tapos.ref_block_prefix == transaction["ref_block_prefix"]

0 comments on commit 299a3d4

Please # to comment.