Fixed private static method calling in example
This commit is contained in:
parent
2f935064f3
commit
f017e5e6ce
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user