Commit 5fc56894 authored by Benjamin Jakimow's avatar Benjamin Jakimow
Browse files
parent 0c962f98
Pipeline #17170 failed with stage
in 6 seconds
......@@ -568,7 +568,7 @@ def createQgsField(name: str, exampleValue: typing.Any, comment: str = None) ->
return QgsField(name, QVariant.String, 'varchar', comment=comment)
elif isinstance(exampleValue, bool):
return QgsField(name, QVariant.Bool, 'int', len=1, comment=comment)
elif isinstance(exampleValue, (int, np.int, np.int8, np.int16, np.int32, np.int64)):
elif isinstance(exampleValue, (int, np.int8, np.int16, np.int32, np.int64)):
return QgsField(name, QVariant.Int, 'int', comment=comment)
elif isinstance(exampleValue, (np.uint, np.uint8, np.uint16, np.uint32, np.uint64)):
return QgsField(name, QVariant.UInt, 'uint', comment=comment)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment