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

Typing/memory block #384

Draft
wants to merge 8 commits into
base: update/mypy
Choose a base branch
from

Conversation

armantekinalp
Copy link
Contributor

Typing for rod and rigid body memory blocks.

@armantekinalp armantekinalp self-assigned this May 13, 2024
@armantekinalp armantekinalp marked this pull request as draft May 13, 2024 19:41
@armantekinalp armantekinalp marked this pull request as ready for review May 14, 2024 21:47
@skim0119
Copy link
Collaborator

Does it pass if you run poetry run mypy --config-file pyproject.toml elastica/memory_block?

@armantekinalp
Copy link
Contributor Author

Does it pass if you run poetry run mypy --config-file pyproject.toml elastica/memory_block?

It doesn't because SystemIdxType is not defined. You have defined in PR #382 . We can wait you to merge that.

@skim0119
Copy link
Collaborator

skim0119 commented May 15, 2024

SystemIdxType is now included in update/mypy branch: https://github.com/GazzolaLab/PyElastica/blob/update/mypy/elastica/typing.py

SystemIdxType: TypeAlias = int

@armantekinalp
Copy link
Contributor Author

Cool thanks, now it passes

@skim0119
Copy link
Collaborator

On this PR, can you also include typing for the file elastica/modules/memory_block.py?

@armantekinalp
Copy link
Contributor Author

okay will work on that

@skim0119
Copy link
Collaborator

@armantekinalp armantekinalp marked this pull request as draft May 15, 2024 18:52
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.

None yet

2 participants