@@ -920,7 +920,7 @@ async def _import(
920
920
variables = variables ,
921
921
)
922
922
923
- # allready imported
923
+ # already imported
924
924
if any (r for r in self ._resources .values () if r .library_doc .source == source ):
925
925
return None , variables
926
926
@@ -1047,12 +1047,12 @@ async def _import(
1047
1047
if entry is not None :
1048
1048
if isinstance (entry , ResourceEntry ):
1049
1049
assert entry .library_doc .source is not None
1050
- allready_imported_resources = next (
1050
+ already_imported_resources = next (
1051
1051
(e for e in self ._resources .values () if e .library_doc .source == entry .library_doc .source ),
1052
1052
None ,
1053
1053
)
1054
1054
1055
- if allready_imported_resources is None and entry .library_doc .source != self .source :
1055
+ if already_imported_resources is None and entry .library_doc .source != self .source :
1056
1056
self ._resources [entry .import_name ] = entry
1057
1057
try :
1058
1058
await self ._import_imports (
@@ -1083,8 +1083,8 @@ async def _import(
1083
1083
source = DIAGNOSTICS_SOURCE_NAME ,
1084
1084
)
1085
1085
elif (
1086
- allready_imported_resources is not None
1087
- and allready_imported_resources .library_doc .source
1086
+ already_imported_resources is not None
1087
+ and already_imported_resources .library_doc .source
1088
1088
):
1089
1089
self ._resources [entry .import_name ] = entry
1090
1090
@@ -1096,16 +1096,16 @@ async def _import(
1096
1096
related_information = [
1097
1097
DiagnosticRelatedInformation (
1098
1098
location = Location (
1099
- uri = str (Uri .from_path (allready_imported_resources .import_source )),
1100
- range = allready_imported_resources .import_range ,
1099
+ uri = str (Uri .from_path (already_imported_resources .import_source )),
1100
+ range = already_imported_resources .import_range ,
1101
1101
),
1102
1102
message = "" ,
1103
1103
)
1104
1104
],
1105
1105
)
1106
1106
1107
1107
elif isinstance (entry , VariablesEntry ):
1108
- allready_imported_variables = [
1108
+ already_imported_variables = [
1109
1109
e
1110
1110
for e in self ._variables .values ()
1111
1111
if e .library_doc .source == entry .library_doc .source
@@ -1114,8 +1114,8 @@ async def _import(
1114
1114
]
1115
1115
if (
1116
1116
top_level
1117
- and allready_imported_variables
1118
- and allready_imported_variables [0 ].library_doc .source
1117
+ and already_imported_variables
1118
+ and already_imported_variables [0 ].library_doc .source
1119
1119
):
1120
1120
await self .append_diagnostics (
1121
1121
range = entry .import_range ,
@@ -1125,8 +1125,8 @@ async def _import(
1125
1125
related_information = [
1126
1126
DiagnosticRelatedInformation (
1127
1127
location = Location (
1128
- uri = str (Uri .from_path (allready_imported_variables [0 ].import_source )),
1129
- range = allready_imported_variables [0 ].import_range ,
1128
+ uri = str (Uri .from_path (already_imported_variables [0 ].import_source )),
1129
+ range = already_imported_variables [0 ].import_range ,
1130
1130
),
1131
1131
message = "" ,
1132
1132
)
@@ -1156,14 +1156,14 @@ async def _import(
1156
1156
)
1157
1157
continue
1158
1158
1159
- allready_imported_library = [
1159
+ already_imported_library = [
1160
1160
e
1161
1161
for e in self ._libraries .values ()
1162
1162
if e .library_doc .source == entry .library_doc .source
1163
1163
and e .alias == entry .alias
1164
1164
and e .args == entry .args
1165
1165
]
1166
- if top_level and allready_imported_library and allready_imported_library [0 ].library_doc .source :
1166
+ if top_level and already_imported_library and already_imported_library [0 ].library_doc .source :
1167
1167
await self .append_diagnostics (
1168
1168
range = entry .import_range ,
1169
1169
message = f'Library "{ entry } " already imported.' ,
@@ -1172,8 +1172,8 @@ async def _import(
1172
1172
related_information = [
1173
1173
DiagnosticRelatedInformation (
1174
1174
location = Location (
1175
- uri = str (Uri .from_path (allready_imported_library [0 ].import_source )),
1176
- range = allready_imported_library [0 ].import_range ,
1175
+ uri = str (Uri .from_path (already_imported_library [0 ].import_source )),
1176
+ range = already_imported_library [0 ].import_range ,
1177
1177
),
1178
1178
message = "" ,
1179
1179
)
0 commit comments