Skip to content

Commit

Permalink
refactor: update default boolean returns (#267)
Browse files Browse the repository at this point in the history
similar to fbbdff2
  • Loading branch information
cesarcoatl authored Apr 12, 2024
1 parent b52c6a4 commit 8266002
Show file tree
Hide file tree
Showing 23 changed files with 65 additions and 65 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -320,11 +320,11 @@ def getThirdPartyScriptModulesHash(self):

def isEmpty(self):
# type: () -> bool
pass
return True

def isUseSsl(self):
# type: () -> bool
pass
return True

def newDiffAction(self, context):
# type: (LaunchContextImpl) -> Any
Expand All @@ -349,7 +349,7 @@ def storeTo(self, arg):

def useCondensedDialogFont(self):
# type: () -> bool
pass
return True

class Jar(Object):
def __init__(self, name, crc32, length):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,27 +34,27 @@ def getSelectedDays(self):

def isAlldays(self):
# type: () -> bool
pass
return True

def isDaySelected(self, day):
# type: (ScheduleModel.DayOfWeek) -> bool
pass

def isEveryHourEnabled(self):
# type: () -> bool
pass
return True

def isEveryMinuteEnabled(self):
# type: () -> bool
pass
return True

def isHourEnabled(self):
# type: () -> bool
pass
return True

def isMinuteEnabled(self):
# type: () -> bool
pass
return True

def selectDayOfWeek(self, day):
# type: (ScheduleModel.DayOfWeek) -> None
Expand Down
2 changes: 1 addition & 1 deletion src/com/inductiveautomation/ignition/common/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ def isRelative(path):

def isRoot(self):
# type: () -> bool
pass
return True

@staticmethod
def makeRelative(toRelative, root):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -195,15 +195,15 @@ def getState(self):

def isAcked(self):
# type: () -> bool
pass
return True

def isCleared(self):
# type: () -> bool
pass
return True

def isShelved(self):
# type: () -> bool
pass
return True

def set(self, property, value):
# type: (AnyStr, Object) -> None
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,11 @@ def getOffset(self):

def isEmptyFilter(self):
# type: () -> bool
pass
return True

def isRecursive(self):
# type: () -> bool
pass
return True

def setAllowedTypes(self, allowedTypes):
# type: (Iterable[AnyStr]) -> BrowseFilter
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,11 @@ def getTaskUID(self):

def isFinished(self):
# type: () -> bool
pass
return True

def isIndeterminant(self):
# type: () -> bool
pass
return True

def setFinished(self, finished):
# type: (bool) -> None
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def getVersion(self):

def isPlatformDetails(self):
# type: () -> bool
pass
return True


class LicenseState(object):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def getQualityCode(self):

def isGood(self):
# type: () -> bool
pass
return True

class Level(Enum):
Bad = 512
Expand Down
10 changes: 5 additions & 5 deletions src/com/inductiveautomation/ignition/common/modules/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,19 +88,19 @@ def getVersion(self):

def isFree(self):
# type: () -> bool
pass
return True

def isMakerEditionCompatible(self):
# type: () -> bool
pass
return True

def isSelfSigned(self):
# type: () -> bool
pass
return True

def isTrialMode(self):
# type: () -> bool
pass
return True

@staticmethod
def newBuilder():
Expand Down Expand Up @@ -249,7 +249,7 @@ def getScope(self):

def isNativeLib(self):
# type: () -> bool
pass
return True

def isRequiredArchitecture(self, arch):
# type: (Platform.Architecture) -> bool
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,23 +105,23 @@ def isLocked(self):

def isModuleFolder(self):
# type: () -> bool
pass
return True

def isOverridable(self):
# type: () -> bool
raise NotImplementedError

def isResourceTypeFolder(self):
# type: () -> bool
pass
return True

def isRestricted(self):
# type: () -> bool
raise NotImplementedError

def isSingletonResource(self):
# type: () -> bool
pass
return True

@staticmethod
def newBuilder():
Expand Down Expand Up @@ -309,7 +309,7 @@ def isParentOf(self, possibleChild):

def isResourceTypeFolder(self):
# type: () -> bool
pass
return True


class ResourceSignature(Object):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def traceAsync(self, *args, **kwargs):
class Promise(Object):
def cancel(self):
# type: () -> bool
pass
return True

def get(self, *args, **kwargs):
# type: (*PyObject, **AnyStr) -> Any
Expand All @@ -149,7 +149,7 @@ def handleException(self, callback):

def isDone(self):
# type: () -> bool
pass
return True

def then(self, callback):
# type: (PyObject) -> Promise
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,15 @@ def getType(self):

def hasStorageId(self):
# type: () -> bool
pass
return True

def isDeleted(self):
# type: () -> bool
pass
return True

def isUpdated(self):
# type: () -> bool
pass
return True

@staticmethod
def newBuilder():
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,15 +115,15 @@ def getTypeForValue(val):

def isArray(self):
# type: () -> bool
pass
return True

def isFloatingPoint(self):
# type: () -> bool
pass
return True

def isNumeric(self):
# type: () -> bool
pass
return True

def legacyDataType(self):
# type: () -> DataType
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def fromString(value):

def isComplexTag(self):
# type: () -> bool
pass
return True

@staticmethod
def values():
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,51 +117,51 @@ def getWeekDayTime(self):

def isAllDays(self):
# type: () -> bool
pass
return True

def isFriday(self):
# type: () -> bool
pass
return True

def isMonday(self):
# type: () -> bool
pass
return True

def isObserveHolidays(self):
# type: () -> bool
pass
return True

def isRepeating(self):
# type: () -> bool
pass
return True

def isSaturday(self):
# type: () -> bool
pass
return True

def isSunday(self):
# type: () -> bool
pass
return True

def isThursday(self):
# type: () -> bool
pass
return True

def isTuesday(self):
# type: () -> bool
pass
return True

def isUseDays(self):
# type: () -> bool
pass
return True

def isWednesday(self):
# type: () -> bool
pass
return True

def isWeekDays(self):
# type: () -> bool
pass
return True

def set(self, that):
# type: (BasicScheduleModel) -> None
Expand Down Expand Up @@ -276,7 +276,7 @@ def getScheduleForDay(self, cal):

def isObserveHolidays(self):
# type: () -> bool
pass
return True

def setObserveHolidays(self, observeHolidays):
# type: (bool) -> None
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def getSubName(self):

def isSkipRefTracking(self):
# type: () -> bool
pass
return True

def setAttribute(self, *args):
# type: (*Any) -> None
Expand Down
4 changes: 2 additions & 2 deletions src/java/lang/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -357,11 +357,11 @@ def intern(self):

def isBlank(self):
# type: () -> bool
pass
return True

def isEmpty(self):
# type: () -> bool
pass
return True

def lastIndexOf(self, arg, fromIndex=None):
# type: (Union[int, String], Optional[int]) -> int
Expand Down
6 changes: 3 additions & 3 deletions src/java/util/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -603,7 +603,7 @@ def containsAll(self, c):

def isEmpty(self):
# type: () -> bool
pass
return True

def iterator(self):
# type: () -> Iterator
Expand Down Expand Up @@ -649,7 +649,7 @@ def get(self, key):

def isEmpty(self):
# type: () -> bool
pass
return True

def keySet(self):
# type: () -> Set[Any]
Expand Down Expand Up @@ -1032,7 +1032,7 @@ def get(self, key):

def isEmpty(self):
# type: () -> bool
pass
return True

def keySet(self):
# type: () -> Set[Any]
Expand Down
2 changes: 1 addition & 1 deletion src/javax/swing/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ def cut(self):

def echoCharIsSet(self):
# type: () -> bool
pass
return True

def getEchoChar(self):
# type: () -> AnyStr
Expand Down
Loading

0 comments on commit 8266002

Please sign in to comment.