Skip to content

Commit

Permalink
Merge pull request #694 from molpopgen/more_type_hint_fixes
Browse files Browse the repository at this point in the history
More type hint fixes in DiploidPopulation.
  • Loading branch information
molpopgen committed Mar 6, 2021
2 parents 76c05d0 + 4d262cb commit 7e0c62b
Showing 1 changed file with 2 additions and 2 deletions.
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

0 comments on commit 7e0c62b

Please sign in to comment.