Skip to content

Improve typehinting and docstrings#183

Merged
sophiamaedler merged 2 commits intomainfrom
feature/improve_formatting
Feb 13, 2025
Merged

Improve typehinting and docstrings#183
sophiamaedler merged 2 commits intomainfrom
feature/improve_formatting

Conversation

@Zethson
Copy link
Copy Markdown
Collaborator

@Zethson Zethson commented Feb 12, 2025

Random things that I noticed.

Signed-off-by: Lukas Heumos <lukas.heumos@posteo.net>
Copy link
Copy Markdown
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?

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
@sophiamaedler sophiamaedler deleted the feature/improve_formatting branch February 15, 2025 08:27
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