Replies: 1 comment
-
I looked into this just yesterday: def update_file(
self,
buffer: "PyObject *" = None, # SWIG cannot know that this should be a bytes object
filename: "char *" = None, # should actually be string
ufilename: "char *" = None,
desc: "char *" = None,
) -> "PyObject *": # SWIG won't know that the return is always None
"""Update attached file."""
CheckParent(self)
return _fitz.Annot_update_file(self, buffer, filename, ufilename, desc) For methods written in Python there is no problem of course - other than a lot of work! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello!
I am currently using PyMuPDF in VSCode in conjunction with Pylance and strict type checking. Pylance reports missing type stubs when importing fitz. Have you considered adding type stubs to the PyMuPDF library? As this is an active developed library, I think this would be a great addition that would adapt it to newer Python conventions.
Beta Was this translation helpful? Give feedback.
All reactions