Browse Source

Removed multiple types definitions

ogert 2 years ago
parent
commit
6b074f52d0
1 changed files with 13 additions and 6 deletions
  1. 13 6
      cdplib/db_migration/ParseJsonSchema.py

+ 13 - 6
cdplib/db_migration/ParseJsonSchema.py

@@ -25,7 +25,8 @@ class ParseJsonSchema(ParseDbSchema):
     Class for retrieving column properties from mongodb jsonSchema
     '''
 
-    def __init__(self, schema_paths: [list, str], log_file: str = None):
+    # def __init__(self, schema_paths: [list, str], log_file: str = None):
+    def __init__(self, schema_paths, log_file: str = None):
         '''
         '''
         from cdplib.log import Log
@@ -212,12 +213,18 @@ class ParseJsonSchema(ParseDbSchema):
 
         return result
 
+    # def _parse_one(self,
+    #                schema: dict,
+    #                field_info: str = None,
+    #                required_only: bool = False,
+    #                super_field_name: str = None,
+    #                already_parsed: (list, dict) = None) -> (list, dict):
     def _parse_one(self,
-                   schema: dict,
-                   field_info: str = None,
-                   required_only: bool = False,
-                   super_field_name: str = None,
-                   already_parsed: (list, dict) = None) -> (list, dict):
+                schema: dict,
+                field_info: str = None,
+                required_only: bool = False,
+                super_field_name: str = None,
+                already_parsed = None):
         '''
         Recursive function that returns a list of (nested) field names or
         a dictionary of (nested) field names with field characteristics.