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

Type hints in pint.toa and get_model & get_model_and_toas functions #1755

Merged
merged 27 commits into from
May 28, 2024

Conversation

abhisrkckl
Copy link
Contributor

@abhisrkckl abhisrkckl commented May 3, 2024

@abhisrkckl abhisrkckl changed the title Type hints in pint.toa WIP: Type hints in pint.toa and pint.models May 6, 2024
@dlakaplan
Copy link
Contributor

I don't know if we want to follow #1756 and define custom types. Like file_like for where you have Union[str, IO]?

@abhisrkckl
Copy link
Contributor Author

Yes I'll use those definitions once that pr is merged.

@abhisrkckl abhisrkckl changed the title WIP: Type hints in pint.toa and pint.models Type hints in pint.toa and get_model & get_model_and_toas functions May 10, 2024
@abhisrkckl abhisrkckl added the awaiting review This PR needs someone to review it so it can be merged label May 10, 2024
src/pint/toa.py Outdated Show resolved Hide resolved
src/pint/toa.py Outdated Show resolved Hide resolved
src/pint/toa.py Outdated Show resolved Hide resolved
@dlakaplan
Copy link
Contributor

I think there are still a few functions that need a return type of None

@dlakaplan
Copy link
Contributor

Looks good. Seems like you fixed those missing hints. All set to merge?

@abhisrkckl
Copy link
Contributor Author

Yes.

@dlakaplan dlakaplan merged commit 47f6e89 into nanograv:master May 28, 2024
7 checks passed
@abhisrkckl
Copy link
Contributor Author

#1709

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting review This PR needs someone to review it so it can be merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants