Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat!: add type hints on all system functions
BREAKING CHANGE: * Python versions below or above 2.7.18 are not supported * `system.date` and Java's Date are no longer using `datetime` functions * remove deprecated functions from `system.tag`
- Loading branch information
1 parent
5b1da1f
commit 51ed6a2
Showing
64 changed files
with
4,317 additions
and
3,939 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
[flake8] | ||
ignore = F401, F821 | ||
ignore = E741, F401, F821 | ||
max-complexity = 10 | ||
max-doc-length = 72 | ||
max-line-length = 120 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ on: | |
types: [published] | ||
|
||
env: | ||
PYTHON_VERSION: 3.9 | ||
PYTHON_VERSION: 2.7 | ||
|
||
jobs: | ||
upload: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/com/inductiveautomation/factorypmi/application/script/builtin/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/com/inductiveautomation/ignition/common/alarming/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
62 changes: 62 additions & 0 deletions
62
src/com/inductiveautomation/ignition/common/opc/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
__all__ = ["BasicOPCBrowseElement", "OPCBrowseElement", "ServerBrowseElement"] | ||
|
||
from java.lang import Object | ||
|
||
|
||
class OPCBrowseElement(object): | ||
def getDataType(self): | ||
raise NotImplementedError | ||
|
||
def getDescription(self): | ||
raise NotImplementedError | ||
|
||
def getDisplayName(self): | ||
raise NotImplementedError | ||
|
||
def getElementType(self): | ||
raise NotImplementedError | ||
|
||
def getServerNodeId(self): | ||
raise NotImplementedError | ||
|
||
|
||
class BasicOPCBrowseElement(Object, OPCBrowseElement): | ||
def __init__(self, *args): | ||
pass | ||
|
||
def getDataType(self): | ||
pass | ||
|
||
def getDescription(self): | ||
pass | ||
|
||
def getDisplayName(self): | ||
pass | ||
|
||
def getElementType(self): | ||
pass | ||
|
||
def getServerNodeId(self): | ||
pass | ||
|
||
|
||
class ServerBrowseElement(Object, OPCBrowseElement): | ||
_serverName = None | ||
|
||
def __init__(self, serverName): | ||
self._serverName = serverName | ||
|
||
def getDataType(self): | ||
pass | ||
|
||
def getDescription(self): | ||
pass | ||
|
||
def getDisplayName(self): | ||
pass | ||
|
||
def getElementType(self): | ||
pass | ||
|
||
def getServerNodeId(self): | ||
pass |
2 changes: 1 addition & 1 deletion
2
src/com/inductiveautomation/ignition/common/script/adapters/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.