@@ -920,7 +920,7 @@ async def _import(
920920 variables = variables ,
921921 )
922922
923- # allready imported
923+ # already imported
924924 if any (r for r in self ._resources .values () if r .library_doc .source == source ):
925925 return None , variables
926926
@@ -1047,12 +1047,12 @@ async def _import(
10471047 if entry is not None :
10481048 if isinstance (entry , ResourceEntry ):
10491049 assert entry .library_doc .source is not None
1050- allready_imported_resources = next (
1050+ already_imported_resources = next (
10511051 (e for e in self ._resources .values () if e .library_doc .source == entry .library_doc .source ),
10521052 None ,
10531053 )
10541054
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 :
10561056 self ._resources [entry .import_name ] = entry
10571057 try :
10581058 await self ._import_imports (
@@ -1083,8 +1083,8 @@ async def _import(
10831083 source = DIAGNOSTICS_SOURCE_NAME ,
10841084 )
10851085 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
10881088 ):
10891089 self ._resources [entry .import_name ] = entry
10901090
@@ -1096,16 +1096,16 @@ async def _import(
10961096 related_information = [
10971097 DiagnosticRelatedInformation (
10981098 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 ,
11011101 ),
11021102 message = "" ,
11031103 )
11041104 ],
11051105 )
11061106
11071107 elif isinstance (entry , VariablesEntry ):
1108- allready_imported_variables = [
1108+ already_imported_variables = [
11091109 e
11101110 for e in self ._variables .values ()
11111111 if e .library_doc .source == entry .library_doc .source
@@ -1114,8 +1114,8 @@ async def _import(
11141114 ]
11151115 if (
11161116 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
11191119 ):
11201120 await self .append_diagnostics (
11211121 range = entry .import_range ,
@@ -1125,8 +1125,8 @@ async def _import(
11251125 related_information = [
11261126 DiagnosticRelatedInformation (
11271127 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 ,
11301130 ),
11311131 message = "" ,
11321132 )
@@ -1156,14 +1156,14 @@ async def _import(
11561156 )
11571157 continue
11581158
1159- allready_imported_library = [
1159+ already_imported_library = [
11601160 e
11611161 for e in self ._libraries .values ()
11621162 if e .library_doc .source == entry .library_doc .source
11631163 and e .alias == entry .alias
11641164 and e .args == entry .args
11651165 ]
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 :
11671167 await self .append_diagnostics (
11681168 range = entry .import_range ,
11691169 message = f'Library "{ entry } " already imported.' ,
@@ -1172,8 +1172,8 @@ async def _import(
11721172 related_information = [
11731173 DiagnosticRelatedInformation (
11741174 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 ,
11771177 ),
11781178 message = "" ,
11791179 )
0 commit comments