mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-05 01:09:40 +08:00
Add flake8-builtins to pre-commit and fix errors (#7105)
Ignore `A003` Co-authored-by: Christian Clauss <cclauss@me.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Dhruv Manilawala <dhruvmanila@gmail.com>
This commit is contained in:
@ -13,7 +13,7 @@ from collections.abc import Iterator
|
||||
class Vertex:
|
||||
"""Class Vertex."""
|
||||
|
||||
def __init__(self, id):
|
||||
def __init__(self, id_):
|
||||
"""
|
||||
Arguments:
|
||||
id - input an id to identify the vertex
|
||||
@ -21,7 +21,7 @@ class Vertex:
|
||||
neighbors - a list of the vertices it is linked to
|
||||
edges - a dict to store the edges's weight
|
||||
"""
|
||||
self.id = str(id)
|
||||
self.id = str(id_)
|
||||
self.key = None
|
||||
self.pi = None
|
||||
self.neighbors = []
|
||||
|
Reference in New Issue
Block a user