Skip to content

Commit e045501

Browse files
committed
Rename types module
Rename the _types module to ecs_types. Modules with leading underscore are reserved for internal use, and in newer version of python there is an internal _types module which conflicts with the ecs _types. The ECS module is renamed to ecs_types, to remove the conflict with the internal type.
1 parent 0da9c17 commit e045501

File tree

15 files changed

+12
-12
lines changed

15 files changed

+12
-12
lines changed
File renamed without changes.
File renamed without changes.
File renamed without changes.

scripts/generator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
from schema import finalizer
3535
from schema import subset_filter
3636
from schema import exclude_filter
37-
from _types import (
37+
from ecs_types import (
3838
FieldEntry
3939
)
4040

scripts/generators/beats.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
)
2525

2626
from generators import ecs_helpers
27-
from _types import (
27+
from ecs_types import (
2828
Field,
2929
FieldNestedEntry,
3030
)

scripts/generators/csv_generator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
from os.path import join
2727
from generator import ecs_helpers
28-
from _types import (
28+
from ecs_types import (
2929
Field,
3030
)
3131

scripts/generators/ecs_helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333

3434
from collections import OrderedDict
3535
from copy import deepcopy
36-
from _types import (
36+
from ecs_types import (
3737
Field,
3838
FieldEntry,
3939
FieldNestedEntry,

scripts/generators/es_template.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
from os.path import join
2828

2929
from generators import ecs_helpers
30-
from _types import (
30+
from ecs_types import (
3131
Field,
3232
FieldNestedEntry,
3333
)

scripts/generators/intermediate_files.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
from schema import visitor
2626
from generators import ecs_helpers
27-
from _types import (
27+
from ecs_types import (
2828
Field,
2929
FieldEntry,
3030
FieldNestedEntry,

scripts/generators/otel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import yaml
99
from schema import visitor
1010
from generators import ecs_helpers
11-
from _types import (
11+
from ecs_types import (
1212
OTelModelFile,
1313
OTelMapping,
1414
OTelAttribute,

0 commit comments

Comments
 (0)