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

不知道为啥这里报错,作者能否指导下,谢谢啦 #106

Open
kxcare opened this issue Dec 11, 2024 · 1 comment
Open

不知道为啥这里报错,作者能否指导下,谢谢啦 #106

kxcare opened this issue Dec 11, 2024 · 1 comment

Comments

@kxcare
Copy link

kxcare commented Dec 11, 2024

image
@sunnysab
Copy link

这是 Python 语法和 IDE 代码提示的问题吧。按如下修改即可:

class A:
    """ Outer class """

    class I:
        """ Inner class """
        pass
    
    def getI(self) -> I:
        return A.I()

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

No branches or pull requests

2 participants