GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix: mypy 0.991 issues (#7988) · https-github-com-nzysoft/Python@8bfd1c8

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • conversions
    • decimal_to_any.py
  • data_structures/linked_list
    • __init__.py
  • matrix
    • matrix_class.py
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎conversions/decimal_to_any.py‎

Copy file name to clipboardExpand all lines: conversions/decimal_to_any.py
+3-2Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,9 @@ def decimal_to_any(num: int, base: int) -> str:
7676
div, mod = divmod(num, base)
7777
if base >= 11 and 9 < mod < 36:
7878
actual_value = ALPHABET_VALUES[str(mod)]
79-
mod = actual_value
80-
new_value += str(mod)
79+
else:
80+
actual_value = str(mod)
81+
new_value += actual_value
8182
div = num // base
8283
num = div
8384
if div == 0:
Collapse file

‎data_structures/linked_list/__init__.py‎

Copy file name to clipboardExpand all lines: data_structures/linked_list/__init__.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def __str__(self) -> str:
4949
>>> print(linked_list)
5050
9 --> 14 --> 23
5151
"""
52-
if not self.is_empty:
52+
if self.is_empty():
5353
return ""
5454
else:
5555
iterate = self.head

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.