Skip to content

Commit

Permalink
Apply lint fixes from latest versions of linters.
Browse files Browse the repository at this point in the history
  • Loading branch information
kirkrodrigues committed Mar 14, 2024
1 parent dba223f commit 7e0b5e5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
7 changes: 4 additions & 3 deletions src/clp_ffi_py/ir/native/PyDecoderBuffer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,10 @@ class PyDecoderBuffer {
* @return false on failure with the relevant Python exception and error
* set.
*/
[[nodiscard]] auto
init(PyObject* input_stream, Py_ssize_t buf_capacity = PyDecoderBuffer::cDefaultInitialCapacity)
-> bool;
[[nodiscard]] auto init(
PyObject* input_stream,
Py_ssize_t buf_capacity = PyDecoderBuffer::cDefaultInitialCapacity
) -> bool;

/**
* Zero-initializes all the data members in PyDecoderBuffer. Should be
Expand Down
4 changes: 2 additions & 2 deletions src/clp_ffi_py/ir/native/PyMetadata.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ class PyMetadata {
* @return false on failure with the relevant Python exception and error
* set.
*/
[[nodiscard]] auto init(nlohmann::json const& metadata, bool is_four_byte_encoding = true)
-> bool;
[[nodiscard]] auto
init(nlohmann::json const& metadata, bool is_four_byte_encoding = true) -> bool;

/**
* Releases the memory allocated for underlying metadata field and the
Expand Down
3 changes: 1 addition & 2 deletions tests/test_ir/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,7 @@ def _check_metadata(
is_the_same_tz,
True,
f"Timezone does not match timezone id. Timezone ID: {timezone_id}, Timezone:"
f' {str(timezone)}"\n'
+ extra_test_info,
f' {str(timezone)}"\n' + extra_test_info,
)

def _check_log_event(
Expand Down

0 comments on commit 7e0b5e5

Please sign in to comment.