mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-08-19 14:28:04 +08:00
Add icalendar stubs (#11733)
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
# Command line app
|
||||
icalendar\.cli
|
||||
|
||||
# Tests
|
||||
icalendar\.tests(\..*)?
|
||||
|
||||
# Methods that use `int` to mean `bool`.
|
||||
icalendar\.cal\.Component\.get_inline
|
||||
icalendar\.cal\.Component\.set_inline
|
||||
@@ -0,0 +1,9 @@
|
||||
from icalendar.cal import Component
|
||||
|
||||
component = Component()
|
||||
component.add("summary", "Test 1")
|
||||
component.add("dtstart", "2022-01-01", encode=True)
|
||||
component.add("dtend", "2022-01-02", encode=False)
|
||||
component.add("location", "Test 3", {})
|
||||
component.add("dtstamp", "2022-01-03", parameters={}, encode=True)
|
||||
component.add("description", "Test 2", parameters={}, encode=False) # type: ignore
|
||||
Reference in New Issue
Block a user