Skip to content

Fix 138#139

Merged
HannoSpreeuw merged 7 commits intomasterfrom
Fix_138
Jun 6, 2025
Merged

Fix 138#139
HannoSpreeuw merged 7 commits intomasterfrom
Fix_138

Conversation

@HannoSpreeuw
Copy link
Copy Markdown
Collaborator

Fixes #138

Also updates pyproject.toml to use Python 3.12 as default and for testing.

tmillenaar and others added 4 commits June 6, 2025 10:28
"default_310" is no longer an appropriate name since we have set python = "3.12".
Test for only one Python version locally, or it will be too time consuming.
(Build tests for four Python versions will be added to CI).
@HannoSpreeuw HannoSpreeuw self-assigned this Jun 6, 2025
'requires-python = ">=3.10, <=3.13"' does NOT include e.g. Python 3.13.1
@tmillenaar
Copy link
Copy Markdown
Contributor

I took a look at the coverage warnings as well as the multiprocessing warnings, but 3.13 still has a linting issue. I can look at that next week. Have a nice weekend :)

@HannoSpreeuw
Copy link
Copy Markdown
Collaborator Author

Thanks for your commit.

I will try to fix the linting issue in the next hour or so.

Have a nice weekend.

Mypy is being overly cautious about dataclass inheritance.
This only occurs for mypy type checking for Python 3.13, i.e. not for earlier Python versions - with their corresponding mypy versions.
One of the two error messages is
'
sourcefinder/accessors/lofarfitsimage.py:5: error: Definition of "__replace__"
Installing missing stub packages:
in base class "DataAccessor" is incompatible with definition in base class
"LofarAccessor"  [misc]
    class LofarFitsImage(FitsImage, LofarAccessor):
'
and the other one, for "class LofarCasaImage(CasaImage, LofarAccessor)", is similar.

No "__replace__" method has been implemented, so it is unclear where this error message comes from.

We therefore assume that mypy has inferred this incorrectly.
@HannoSpreeuw HannoSpreeuw merged commit 0cbfaed into master Jun 6, 2025
8 checks passed
@HannoSpreeuw HannoSpreeuw deleted the Fix_138 branch June 6, 2025 18:49
@HannoSpreeuw
Copy link
Copy Markdown
Collaborator Author

The problem with the coverage files seems to persist.

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.

Update CI to include newer Python versions

2 participants