Skip to content

Commit 6540b50

Browse files
committed
style
1 parent 2e1577e commit 6540b50

1 file changed

Lines changed: 9 additions & 7 deletions

File tree

caldav/calendarobjectresource.py

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1085,17 +1085,19 @@ def _get_wire_data(self):
10851085
doc="vCal representation of the object in wire format (UTF-8, CRLN)",
10861086
)
10871087

1088-
def _set_vobject_instance(self, inst: 'vobject.base.Component'):
1088+
def _set_vobject_instance(self, inst: "vobject.base.Component"):
10891089
self._vobject_instance = inst
10901090
self._data = None
10911091
self._icalendar_instance = None
10921092
return self
10931093

1094-
def _get_vobject_instance(self) -> Optional['vobject.base.Component']:
1094+
def _get_vobject_instance(self) -> Optional["vobject.base.Component"]:
10951095
try:
10961096
import vobject
10971097
except ImportError:
1098-
logging.critical("A vobject instance has been requested, but the vobject library is not installed (vobject is no longer an official dependency in 2.0)")
1098+
logging.critical(
1099+
"A vobject instance has been requested, but the vobject library is not installed (vobject is no longer an official dependency in 2.0)"
1100+
)
10991101
return None
11001102
if not self._vobject_instance:
11011103
if self._get_data() is None:
@@ -1114,29 +1116,29 @@ def _get_vobject_instance(self) -> Optional['vobject.base.Component']:
11141116

11151117
## event.instance has always yielded a vobject, but will probably yield an icalendar_instance
11161118
## in version 3.0!
1117-
def _get_deprecated_vobject_instance(self) -> Optional['vobject.base.Component']:
1119+
def _get_deprecated_vobject_instance(self) -> Optional["vobject.base.Component"]:
11181120
warnings.warn(
11191121
"use event.vobject_instance or event.icalendar_instance",
11201122
DeprecationWarning,
11211123
stacklevel=2,
11221124
)
11231125
return self._get_vobject_instance()
11241126

1125-
def _set_deprecated_vobject_instance(self, inst: 'vobject.base.Component'):
1127+
def _set_deprecated_vobject_instance(self, inst: "vobject.base.Component"):
11261128
warnings.warn(
11271129
"use event.vobject_instance or event.icalendar_instance",
11281130
DeprecationWarning,
11291131
stacklevel=2,
11301132
)
11311133
return self._get_vobject_instance(inst)
11321134

1133-
vobject_instance: 'vobject.base.VBase' = property(
1135+
vobject_instance: "vobject.base.VBase" = property(
11341136
_get_vobject_instance,
11351137
_set_vobject_instance,
11361138
doc="vobject instance of the object",
11371139
)
11381140

1139-
instance: 'vobject.base.VBase' = property(
1141+
instance: "vobject.base.VBase" = property(
11401142
_get_deprecated_vobject_instance,
11411143
_set_deprecated_vobject_instance,
11421144
doc="vobject instance of the object (DEPRECATED! This will yield an icalendar instance in caldav 3.0)",

0 commit comments

Comments
 (0)