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
python = 3.9.6 pylance = 2023.12.102 environment : mac
code can be run. class Human(type): @staticmethod def new(msc, *args, **kwargs): # 需要调用父类的方法造一个对象出来 class_ = super().new(msc, *args, **kwargs) class_.freedom = True return class_
class Student(object, metaclass=Human): pass
print(Student.freedom)
The text was updated successfully, but these errors were encountered:
extension is error lens. he tell me the extension can not generate error and I should ask for someone who use python.
Sorry, something went wrong.
In addition, this will not report an error in pycharm
heejaechang
No branches or pull requests
python = 3.9.6
pylance = 2023.12.102
environment : mac
code can be run.
class Human(type):
@staticmethod
def new(msc, *args, **kwargs):
# 需要调用父类的方法造一个对象出来
class_ = super().new(msc, *args, **kwargs)
class_.freedom = True
return class_
class Student(object, metaclass=Human):
pass
print(Student.freedom)
The text was updated successfully, but these errors were encountered: