We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pyright 1.1.396
starting with pyright 1.1.396, stubs such as:
# DocumentPy.xml class Document(FreeCAD.PropertyContainer): def findObjects(self, Type: str = 'App::DocumentObject', Name: str = None, Label: str = None) -> list[FreeCADGui.DocumentObjectPy]:
with invocations like:
group_list = this_doc.findObjects( Type=type_consts.App.DocumentObjectGroup, Name=group_name )
results in error:
error: Argument of type "None" cannot be assigned to parameter "Label" of type "str" in function "findObjects" "None" is not assignable to "str" (reportArgumentType)
since:
Label: str = None
is now expected to be instead:
Label: str|None = None
The text was updated successfully, but these errors were encountered:
No branches or pull requests
starting with
pyright 1.1.396
, stubs such as:with invocations like:
results in error:
since:
is now expected to be instead:
The text was updated successfully, but these errors were encountered: