Skip to content

Commit cac79d3

Browse files
author
César Román
authored
feat: add toString implementation (#73)
this is a partial revert of cf485d2 where toString was removed from ignition.common.i18n ignition.common.sqltags.model.types Refs: cf485d2
1 parent cf485d2 commit cac79d3

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed

src/com/inductiveautomation/ignition/common/i18n/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,7 @@ def setKey(self, key):
4343
def setParams(self, params):
4444
# type: (List[Object]) -> None
4545
pass
46+
47+
def toString(self, locale=None):
48+
# type: (Optional[Locale]) -> String
49+
pass

src/com/inductiveautomation/ignition/common/sqltags/model/types/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,10 @@ def isOpcBadData(self):
5555
# type: () -> bool
5656
pass
5757

58+
def toString(self, locale=None):
59+
# type: (Optional[Locale]) -> String
60+
pass
61+
5862
@staticmethod
5963
def valueOf(name):
6064
# type: (str) -> DataQuality

src/org/json/__init__.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,10 @@ def toJSONObject(self, names):
9999
# type: (JSONArray) -> JSONObject
100100
pass
101101

102+
def toString(self, indentFactor=None):
103+
# type: (Optional[int]) -> String
104+
pass
105+
102106
def write(self, writer):
103107
# type: (Writer) -> Writer
104108
pass
@@ -256,6 +260,10 @@ def toJSONArray(self, names):
256260
# type: (JSONArray) -> JSONArray
257261
pass
258262

263+
def toString(self, indentFactor=None):
264+
# type: (Optional[int]) -> String
265+
pass
266+
259267
@staticmethod
260268
def valueToString(value):
261269
# type: (Object) -> String

0 commit comments

Comments
 (0)