这是indexloc提供的服务,不要输入任何密码
Skip to content

Fix linter issues #10

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/tmlt/core/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import typeguard

# This version file is populated during build -- do not commit it.
from ._version import __version__
from ._version import __version__ # pylint: disable=import-error

# By default, typeguard only checks the first element lists, but we want to
# check the type of every list item.
Expand Down
3 changes: 0 additions & 3 deletions src/tmlt/core/utils/arb.py
Original file line number Diff line number Diff line change
Expand Up @@ -372,10 +372,8 @@ def man_exp(self) -> Tuple[int, int]:
x = self._ptr.contents.mid
# Per the docs, the initializer for ctypes.c_long is optional, but
# pylint thinks it is required.
# pylint: disable=no-value-for-parameter
man_ptr = ctypes.pointer(ctypes.c_long())
exp_ptr = ctypes.pointer(ctypes.c_long())
# pylint: enable=no-value-for-parameter
arblib.arf_get_fmpz_2exp(man_ptr, exp_ptr, ctypes.byref(x))
return _fmpz_t_to_int(man_ptr), _fmpz_t_to_int(exp_ptr)

Expand Down Expand Up @@ -632,7 +630,6 @@ def _int_to_fmpz_t(val: int) -> "ctypes._PointerLike":
Args:
val: Integer to convert.
"""
# pylint: disable-next=no-value-for-parameter
fmpz_pointer = ctypes.pointer(ctypes.c_long())
s = "%x" % int(val) # pylint: disable=consider-using-f-string
val_c_string = ctypes.c_char_p(s.encode("ascii"))
Expand Down