Skip to content

Commit 2030526

Browse files
committed
abap: fix mypy typing error
Mypy struggles with dynamic type creation. See: python/mypy#2477
1 parent 8f5d803 commit 2030526

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

‎sap/platform/abap/ddic.py‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
"""Common ABAP types"""
22

3+
from typing import Any
34
from sap.platform.abap import Structure, InternalTable
45

56

@@ -144,7 +145,7 @@ class RSIMP(Structure):
144145
TYP: str
145146

146147

147-
IMPORT_TYPE = InternalTable.define('IMPORT', RSIMP)
148+
IMPORT_TYPE = InternalTable.define('IMPORT', RSIMP) # type: Any
148149

149150

150151
class RSTBL(Structure):
@@ -154,7 +155,7 @@ class RSTBL(Structure):
154155
DBSTRUCT: str
155156

156157

157-
TABLE_TYPE = InternalTable.define('TABLES', RSTBL)
158+
TABLE_TYPE = InternalTable.define('TABLES', RSTBL) # type: Any
158159

159160

160161
class RSFDO(Structure):
@@ -164,7 +165,7 @@ class RSFDO(Structure):
164165
KIND: str
165166

166167

167-
DOCUMENTATION_TYPE = InternalTable.define('DOCUMENTATION', RSFDO)
168+
DOCUMENTATION_TYPE = InternalTable.define('DOCUMENTATION', RSFDO) # type: Any
168169

169170

170171
class FUNCTION_LINE(Structure):

0 commit comments

Comments
 (0)