Skip to content
Open
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
4 changes: 2 additions & 2 deletions dynamic_programming/matrix_chain_multiplication.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
``26000``
"""

from collections.abc import Iterator
from collections.abc import Generator
from contextlib import contextmanager
from functools import cache
from sys import maxsize
Expand Down Expand Up @@ -128,7 +128,7 @@ def a(i: int, j: int) -> int:


@contextmanager
def elapsed_time(msg: str) -> Iterator:
def elapsed_time(msg: str) -> Generator[None]:
# print(f"Starting: {msg}")
from time import perf_counter_ns

Expand Down
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,6 @@ skip = """\
# free-threaded 3.15t test venv would otherwise leave several stubs unresolved.
environment.python-version = "3.15"
rules.call-non-callable = "ignore"
rules.deprecated = "ignore"
rules.invalid-argument-type = "ignore"
rules.invalid-return-type = "ignore"
rules.no-matching-overload = "ignore"
Expand Down
Loading