Skip to content

Commit

Permalink
document (deprecated) year property
Browse files Browse the repository at this point in the history
  • Loading branch information
Wooble committed Sep 13, 2019
1 parent d353c4b commit 7d612cf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pycounter/report.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ def __repr__(self):

@property
def year(self):
"""Year report was issued (deprecated)."""
warnings.warn(
DeprecationWarning(
"CounterReport.year is deprecated."
Expand All @@ -106,6 +107,7 @@ def year(self):

@year.setter
def year(self, value):
"""Set year report was issued."""
self._year = value

def __iter__(self):
Expand Down

0 comments on commit 7d612cf

Please sign in to comment.