Skip to content
New issue

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

Support parsing annotations with more than one dot in the name #9

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

toofar
Copy link

@toofar toofar commented Jul 31, 2022

This was tripping up on this line from QtGui.QPainter when running on an updated PyQt (6.3.1):

def drawConvexPolygon(self, points: PyQt6.sip.array[QtCore.QPointF]) -> None: ...

Here PyQt6.sip.array is Attribute(Attribute(Name)) and we can supported arbitrarily dotted names by recursing.
Also there is an attribute in the slice too which apparently wasn't supported before.

I'm not sure what test case this should/could have. Importing QtGui and calling the function with the right signature?

This was tripping up on this line from QtGui.QPainter when running on an
updated PyQt (6.3.1):

    def drawConvexPolygon(self, points: PyQt6.sip.array[QtCore.QPointF]) -> None: ...

Here PyQt6.sip.array is Attribute(Attribute(Name)) and we can supported
arbitrarily dotted names by recursing.
Also there is an attribute in the slice too which apparently wasn't
supported before.

I'm not sure what test case this should/could have. Importing QtGui and
calling the function with the right signature?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant