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

[Lang] [bug] Fix support staticmethod decorator for data_oriented class #3186

Merged
merged 2 commits into from
Oct 18, 2021
Merged

[Lang] [bug] Fix support staticmethod decorator for data_oriented class #3186

merged 2 commits into from
Oct 18, 2021

Conversation

yihong0618
Copy link
Collaborator

Related issue = #3019

Also support the @staticmethod decorator

@netlify
Copy link

netlify bot commented Oct 14, 2021

✔️ Deploy Preview for jovial-fermat-aa59dc ready!

🔨 Explore the source changes: 45efcd4

🔍 Inspect the deploy log: https://app.netlify.com/sites/jovial-fermat-aa59dc/deploys/616d29ca8330288237a82449

😎 Browse the preview: https://deploy-preview-3186--jovial-fermat-aa59dc.netlify.app

@yihong0618
Copy link
Collaborator Author

@ailzhang @Zheaoli @yuanming-hu can you take a look, and make some change for @property support.

return 3

a = TestStatic()
assert a.kernel_static == 42
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Zheaoli its strange why some test case passed.......
My code is missing the ()

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The CI script may get some issue.

I will fix it

Copy link
Contributor

@ailzhang ailzhang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks for contributing!

@ailzhang ailzhang merged commit 420261a into taichi-dev:master Oct 18, 2021
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.

3 participants