aboutsummaryrefslogtreecommitdiffstats
path: root/pyGHDL/libghdl
diff options
context:
space:
mode:
authorfhuemer <fhuemer@ecs.tuwien.ac.at>2022-09-23 19:21:04 +0200
committerGitHub <noreply@github.com>2022-09-23 19:21:04 +0200
commit73419afb36e88a3c881dc62fd74ab886200f3d55 (patch)
tree72169fe67c982b431aca65d98a524016ae302823 /pyGHDL/libghdl
parent855524690a5d85b14ae0769885f2f950c5b88158 (diff)
downloadghdl-73419afb36e88a3c881dc62fd74ab886200f3d55.tar.gz
ghdl-73419afb36e88a3c881dc62fd74ab886200f3d55.tar.bz2
ghdl-73419afb36e88a3c881dc62fd74ab886200f3d55.zip
pyGHDL: added missing type annotations. Fix #2192 (#2195)
Diffstat (limited to 'pyGHDL/libghdl')
-rw-r--r--pyGHDL/libghdl/vhdl/scanner.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pyGHDL/libghdl/vhdl/scanner.py b/pyGHDL/libghdl/vhdl/scanner.py
index da6b63520..6f6e0353e 100644
--- a/pyGHDL/libghdl/vhdl/scanner.py
+++ b/pyGHDL/libghdl/vhdl/scanner.py
@@ -97,7 +97,7 @@ def Get_Token_Offset() -> int:
@export
@BindToLibGHDL("vhdl__scanner__get_token_position")
-def Get_Token_Position():
+def Get_Token_Position() -> int:
"""
Get the current token's position.
@@ -108,7 +108,7 @@ def Get_Token_Position():
@export
@BindToLibGHDL("vhdl__scanner__get_position")
-def Get_Position():
+def Get_Position() -> int:
"""
Get the current position.