Add 10 graph algorithms with comprehensive tests #17159
Annotations
10 errors
|
ruff (UP006):
graphs/chinese_postman.py#L23
graphs/chinese_postman.py:23:24: UP006 Use `list` instead of `List` for type annotation
help: Replace with `list`
|
|
ruff (UP006):
graphs/chinese_postman.py#L23
graphs/chinese_postman.py:23:19: UP006 Use `list` instead of `List` for type annotation
help: Replace with `list`
|
|
ruff (F401):
graphs/chinese_postman.py#L13
graphs/chinese_postman.py:13:8: F401 `itertools` imported but unused
help: Remove unused import: `itertools`
|
|
ruff (F401):
graphs/chinese_postman.py#L12
graphs/chinese_postman.py:12:39: F401 `typing.Set` imported but unused
help: Remove unused import: `typing.Set`
|
|
ruff (I001):
graphs/chinese_postman.py#L12
graphs/chinese_postman.py:12:1: I001 Import block is un-sorted or un-formatted
help: Organize imports
|
|
ruff (UP035):
graphs/chinese_postman.py#L12
graphs/chinese_postman.py:12:1: UP035 `typing.Set` is deprecated, use `set` instead
|
|
ruff (UP035):
graphs/chinese_postman.py#L12
graphs/chinese_postman.py:12:1: UP035 `typing.Dict` is deprecated, use `dict` instead
|
|
ruff (UP035):
graphs/chinese_postman.py#L12
graphs/chinese_postman.py:12:1: UP035 `typing.Tuple` is deprecated, use `tuple` instead
|
|
ruff (UP035):
graphs/chinese_postman.py#L12
graphs/chinese_postman.py:12:1: UP035 `typing.List` is deprecated, use `list` instead
|
|
ruff (RUF037):
data_structures/hashing/hash_table_with_linked_list.py#L11
data_structures/hashing/hash_table_with_linked_list.py:11:28: RUF037 Unnecessary empty iterable within a deque call
help: Replace with `deque()`
|