Skip to content

Commit d7fcf8c

Browse files
committed
fix: sort imports
1 parent 079645f commit d7fcf8c

File tree

2 files changed

+5
-6
lines changed
  • internal-import-file/import-document-ai/src/reportimporter

2 files changed

+5
-6
lines changed

internal-import-file/import-document-ai/src/reportimporter/core.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,13 @@
1414
StixCoreRelationship,
1515
get_config_variable,
1616
)
17-
from requests.exceptions import ConnectionError, HTTPError
18-
1917
from reportimporter.constants import (
2018
RESULT_FORMAT_CATEGORY,
2119
RESULT_FORMAT_MATCH,
2220
RESULT_FORMAT_TYPE,
2321
)
2422
from reportimporter.util import create_stix_object
23+
from requests.exceptions import ConnectionError, HTTPError
2524

2625

2726
class ReportImporter:

internal-import-file/import-document-ai/src/reportimporter/util.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
from typing import Dict, List
22

33
import stix2
4+
from pycti import Identity # For Sector, Organization, Individual
45
from pycti import (
56
AttackPattern,
6-
Identity, # For Sector, Organization, Individual
77
IntrusionSet,
88
Location,
99
Malware,
1010
ThreatActorGroup,
1111
Vulnerability,
1212
)
13+
from pycti.utils.constants import IdentityTypes # classes d’identité STIX valides
1314
from pycti.utils.constants import (
14-
CustomObjectChannel, # custom-object « Channel » déjà fourni par pycti
15-
IdentityTypes, # classes d’identité STIX valides
16-
)
15+
CustomObjectChannel,
16+
) # custom-object « Channel » déjà fourni par pycti
1717

1818

1919
def create_stix_object(

0 commit comments

Comments
 (0)