Skip to content

Commit

Permalink
Merge pull request #25 from cadu-leite/fix_typos_
Browse files Browse the repository at this point in the history
Fix typos
  • Loading branch information
cadu-leite authored Jun 25, 2022
2 parents 437894b + e6d7717 commit 170558a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
9 changes: 4 additions & 5 deletions networkdays/networkdays.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import datetime
from itertools import groupby


class Networkdays:

def __init__(self, date_start, date_end=None, holidays=set(), weekdaysoff={6, 7}):
Expand All @@ -22,10 +23,8 @@ def networkdays(self):
date_start (datetime.date): initial date
date_end (datetime.date): end date, or if none, is the last day of the
date_start year.
workdays (set): set (list) of working days in ISO format,
Monday is 1 and Sunday is 7.
holidays (set): datetime object set, indicating days off.
weekdaysoff (set): set of weekdays not working,
holidays (sipytho net): list of datetime object, indicating days off.
weekdaysoff (set): list of weekdays not working,
default is Saturday and Sunday {6,7}.
returns:
Expand All @@ -41,7 +40,7 @@ def networkdays(self):
'''

# if not dte_end, assume 1 year after (by calendar) date start
# if not date_end, assume 1 year after (by calendar) date start
if self.date_end is None:
self.date_end = datetime.date(
self.date_start.year + 1,
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name="python-networkdays",
version="1.1",
version="1.2",

author="Carlos Leite",
author_email="caduado@gmail.com",
Expand Down

0 comments on commit 170558a

Please sign in to comment.