pre-commit autoupdate: pyupgrade v2.34.0 -> v2.37.0 (#6245)

* pre-commit autoupdate: pyupgrade v2.34.0 -> v2.37.0

* pre-commit run --all-files
This commit is contained in:
Christian Clauss
2022-07-11 10:19:52 +02:00
committed by GitHub
parent 2d5dd6f132
commit b75a7c77f8
41 changed files with 56 additions and 41 deletions

View File

@ -1,4 +1,4 @@
from typing import Callable
from collections.abc import Callable
def bisection(function: Callable[[float], float], a: float, b: float) -> float:

View File

@ -1,5 +1,5 @@
import math
from typing import Callable
from collections.abc import Callable
def intersection(function: Callable[[float], float], x0: float, x1: float) -> float:

View File

@ -1,7 +1,7 @@
"""Newton's Method."""
# Newton's Method - https://en.wikipedia.org/wiki/Newton%27s_method
from typing import Callable
from collections.abc import Callable
RealFunc = Callable[[float], float] # type alias for a real -> real function