Skip to content

Commit

Permalink
Merge pull request #1 from devdanzin/add-all-attribute
Browse files Browse the repository at this point in the history
Add __all__ to cli.py
  • Loading branch information
c0d33ngr committed Jul 9, 2024
2 parents db0900f + 6a8536f commit 94af1de
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/icalendar/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,5 +83,8 @@ def main():
for event in calendar.walk('vevent'):
argv.output.write(view(event) + '\n\n')


__all__ = ["main", "view"]

if __name__ == '__main__':
main()
7 changes: 7 additions & 0 deletions src/icalendar/prop.py
Original file line number Diff line number Diff line change
Expand Up @@ -1123,3 +1123,10 @@ def from_ical(self, name, value):
decoded = type_class.from_ical(value)
return decoded


__all__ = ["DURATION_REGEX", "TimeBase", "TypesFactory", "WEEKDAY_RULE",
"tzid_from_dt", "vBinary", "vBoolean", "vCalAddress",
"vCategory", "vDDDLists", "vDDDTypes", "vDate", "vDatetime",
"vDuration", "vFloat", "vFrequency", "vGeo", "vInline", "vInt",
"vMonth", "vPeriod", "vRecur", "vSkip", "vText", "vTime",
"vUTCOffset", "vUri", "vWeekday"]
2 changes: 1 addition & 1 deletion src/icalendar/tests/test_equality.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
except ImportError:
pytz = None
from icalendar.prop import *
from datetime import datetime, date, timedelta
from datetime import datetime, date, time, timedelta
import pytest

def assert_equal(actual_value, expected_value):
Expand Down

0 comments on commit 94af1de

Please sign in to comment.