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

Improve typehinting and docstrings #183

Merged
merged 2 commits into from
Feb 13, 2025
Merged

Conversation

Zethson
Copy link
Collaborator

@Zethson Zethson commented Feb 12, 2025

Random things that I noticed.

Signed-off-by: Lukas Heumos <[email protected]>
Copy link
Collaborator

@sophiamaedler sophiamaedler left a comment

Choose a reason for hiding this comment

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

Thanks for the code format improvements! Much cleaner. I'll try and match this style in the future. Not sure what the best fix for the import statements is. We can get rid of the return types and the import statement but I guess thats not best practice?

src/scportrait/tools/stitch/_stitch.py Outdated Show resolved Hide resolved
src/scportrait/tools/stitch/_stitch.py Outdated Show resolved Hide resolved
src/scportrait/tools/stitch/_stitch.py Outdated Show resolved Hide resolved
if TYPE_CHECKING:
    from ashlar.reg import EdgeAligner, Mosaic

Is always removed by ruff linter. Removing the return types and the import statements to ensure that java dependency is only required for the stitching code.
@sophiamaedler sophiamaedler merged commit d67b265 into main Feb 13, 2025
1 check passed
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.

2 participants