Skip to content

Commit

Permalink
deploy stub files [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Jan 10, 2025
1 parent d169106 commit dd52806
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions pycrostates/utils/_checks.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,7 @@ def _check_type(item, types, item_name=None):
type_name = ", ".join(type_name)
item_name = "Item" if item_name is None else f"'{item_name}'"
raise TypeError(
f"{item_name} must be an instance of {type_name}, "
f"got {type(item)} instead."
f"{item_name} must be an instance of {type_name}, got {type(item)} instead."
)

return item
Expand Down
4 changes: 2 additions & 2 deletions pycrostates/utils/sys_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ def sys_info(fid: Optional[IO] = None, developer: bool = False):
out("Logical cores:".ljust(ljust) + str(psutil.cpu_count(True)) + "\n")
# memory information
out("RAM:".ljust(ljust))
out(f"{psutil.virtual_memory().total / float(2 ** 30):0.1f} GB\n")
out(f"{psutil.virtual_memory().total / float(2**30):0.1f} GB\n")
out("SWAP:".ljust(ljust))
out(f"{psutil.swap_memory().total / float(2 ** 30):0.1f} GB\n")
out(f"{psutil.swap_memory().total / float(2**30):0.1f} GB\n")
# package information
out(f"{package}:".ljust(ljust) + version(package) + "\n")

Expand Down

0 comments on commit dd52806

Please sign in to comment.