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

More type hint fixes in DiploidPopulation. #694

Merged
merged 1 commit into from
Mar 6, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions fwdpy11/_types/diploid_population.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def create_from_tskit(cls, ts: tskit.TreeSequence) -> "fwdpy11.DiploidPopulation
return cls(0, 0.0, ll_pop=ll)

@classmethod
def load_from_file(cls, filename: IO) -> "fwdpy11.DiploidPopulation":
def load_from_file(cls, filename: str) -> "fwdpy11.DiploidPopulation":
"""
Load population from the output of
:func:`fwdpy11.DiploidPopulation.dump_to_file`.
Expand Down Expand Up @@ -208,7 +208,7 @@ def dump_to_file(self, filename: str):
"""
self._dump_to_file(filename)

def pickle_to_file(self, filename: str):
def pickle_to_file(self, filename: IO):
"""
Pickle the population to an open file.

Expand Down