Fixed private static method calling in example

This commit is contained in:
Dmitriy Shishkov 2023-10-17 22:49:27 +03:00
parent 2f935064f3
commit f017e5e6ce
Signed by: dm1sh
GPG Key ID: 027994B0AA357688

View File

@ -2,8 +2,8 @@ import numpy as np
import matplotlib.pyplot as plt import matplotlib.pyplot as plt
class GraphStatic: class GraphStatic:
@staticmethod @classmethod
def plot(xs: np.ndarray, ys: np.ndarray, params: dict[str, str]) -> plt.Figure: def plot(cls, xs: np.ndarray, ys: np.ndarray, params: dict[str, str]) -> plt.Figure:
""" """
строим график через строим график через
""" """
@ -13,7 +13,7 @@ class GraphStatic:
Все методы при этом статичные Все методы при этом статичные
""" """
GraphStatic.__some_func(1, 2) cls.__some_func(1, 2)
""" """
И возвращаем Figure И возвращаем Figure