Skip to content

Commit d17c1d5

Browse files
authored
figure objects are not callable (fixes #19)
1 parent 08cc7e3 commit d17c1d5

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/PythonPlot.jl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,6 @@ PythonCall.pyconvert(::Type{Figure}, o::Py) = Figure(o)
6767
Base.:(==)(f::Figure, g::Figure) = pyconvert(Bool, Py(f) == Py(g))
6868
Base.isequal(f::Figure, g::Figure) = isequal(Py(f), Py(g))
6969
Base.hash(f::Figure, h::UInt) = hash(Py(f), h)
70-
PythonCall.pycall(f::Figure, args...; kws...) = pycall(Py(f), args...; kws...)
71-
(f::Figure)(args...; kws...) = pycall(Py(f), PyAny, args...; kws...)
7270
Base.Docs.doc(f::Figure) = Base.Docs.Text(pyconvert(String, Py(f).__doc__))
7371

7472
# Note: using `Union{Symbol,String}` produces ambiguity.

0 commit comments

Comments
 (0)