Skip to content

Commit

Permalink
abap: fix mypy typing error
Browse files Browse the repository at this point in the history
Mypy struggles with dynamic type creation.
See: python/mypy#2477
  • Loading branch information
palubaj committed May 2, 2023
1 parent 8f5d803 commit 8415fb8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions sap/platform/abap/ddic.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""Common ABAP types"""

from typing import Any # noqa: F401
from sap.platform.abap import Structure, InternalTable


Expand Down Expand Up @@ -144,7 +145,7 @@ class RSIMP(Structure):
TYP: str


IMPORT_TYPE = InternalTable.define('IMPORT', RSIMP)
IMPORT_TYPE = InternalTable.define('IMPORT', RSIMP) # type: Any


class RSTBL(Structure):
Expand All @@ -154,7 +155,7 @@ class RSTBL(Structure):
DBSTRUCT: str


TABLE_TYPE = InternalTable.define('TABLES', RSTBL)
TABLE_TYPE = InternalTable.define('TABLES', RSTBL) # type: Any


class RSFDO(Structure):
Expand All @@ -164,7 +165,7 @@ class RSFDO(Structure):
KIND: str


DOCUMENTATION_TYPE = InternalTable.define('DOCUMENTATION', RSFDO)
DOCUMENTATION_TYPE = InternalTable.define('DOCUMENTATION', RSFDO) # type: Any


class FUNCTION_LINE(Structure):
Expand Down

0 comments on commit 8415fb8

Please sign in to comment.