mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-08 22:36:18 +08:00
[vobject] Partly annotate validate methods (#14205)
Should help with #14194
This commit is contained in:
@@ -14,7 +14,7 @@ class Behavior:
|
||||
forceUTC: bool
|
||||
sortFirst: Incomplete
|
||||
@classmethod
|
||||
def validate(cls, obj, raiseException: bool = False, complainUnrecognized: bool = False): ...
|
||||
def validate(cls, obj, raiseException: bool = False, complainUnrecognized: bool = False) -> bool: ...
|
||||
@classmethod
|
||||
def lineValidate(cls, line, raiseException, complainUnrecognized): ...
|
||||
@classmethod
|
||||
|
||||
@@ -118,7 +118,7 @@ class VTimezone(VCalendarComponentBehavior):
|
||||
description: str
|
||||
sortFirst: Incomplete
|
||||
@classmethod
|
||||
def validate(cls, obj, raiseException, *args): ...
|
||||
def validate(cls, obj, raiseException: bool, *args) -> bool: ... # type: ignore[override]
|
||||
@staticmethod
|
||||
def transformToNative(obj): ...
|
||||
@staticmethod
|
||||
@@ -134,13 +134,13 @@ class VEvent(RecurringBehavior):
|
||||
sortFirst: Incomplete
|
||||
description: str
|
||||
@classmethod
|
||||
def validate(cls, obj, raiseException, *args): ...
|
||||
def validate(cls, obj, raiseException: bool, *args) -> bool: ... # type: ignore[override]
|
||||
|
||||
class VTodo(RecurringBehavior):
|
||||
name: str
|
||||
description: str
|
||||
@classmethod
|
||||
def validate(cls, obj, raiseException, *args): ...
|
||||
def validate(cls, obj, raiseException: bool, *args) -> bool: ... # type: ignore[override]
|
||||
|
||||
class VJournal(RecurringBehavior):
|
||||
name: str
|
||||
@@ -156,21 +156,21 @@ class VAlarm(VCalendarComponentBehavior):
|
||||
@staticmethod
|
||||
def generateImplicitParameters(obj) -> None: ...
|
||||
@classmethod
|
||||
def validate(cls, obj, raiseException, *args): ...
|
||||
def validate(cls, obj, raiseException: bool, *args) -> bool: ... # type: ignore[override]
|
||||
|
||||
class VAvailability(VCalendarComponentBehavior):
|
||||
name: str
|
||||
description: str
|
||||
sortFirst: Incomplete
|
||||
@classmethod
|
||||
def validate(cls, obj, raiseException, *args): ...
|
||||
def validate(cls, obj, raiseException: bool, *args) -> bool: ... # type: ignore[override]
|
||||
|
||||
class Available(RecurringBehavior):
|
||||
name: str
|
||||
sortFirst: Incomplete
|
||||
description: str
|
||||
@classmethod
|
||||
def validate(cls, obj, raiseException, *args): ...
|
||||
def validate(cls, obj, raiseException: bool, *args) -> bool: ... # type: ignore[override]
|
||||
|
||||
class Duration(Behavior):
|
||||
name: str
|
||||
|
||||
Reference in New Issue
Block a user