@@ -41,7 +41,7 @@ def skip_whitespace_and_comments(self) -> BibToken | None:
4141
4242 return None
4343
44- def parse_entry_name (self , name_context : ' BibValueContext' , existing_names : Collection [str ]) -> str :
44+ def parse_entry_name (self , name_context : BibValueContext , existing_names : Collection [str ]) -> str :
4545 # Entry names may even contain %, which is otherwise used for comments
4646 while (head := self .peek ()) and head .kind not in ['CLOSING_BRACE' , 'COMMA' , 'LINE_BREAK' ]:
4747 self .advance ()
@@ -60,7 +60,7 @@ def parse_entry_name(self, name_context: 'BibValueContext', existing_names: Coll
6060
6161 return entry_name
6262
63- def parse_property_key (self , entry_context : ' BibEntryContext' , existing_keys : Collection [str ]) -> str :
63+ def parse_property_key (self , entry_context : BibEntryContext , existing_keys : Collection [str ]) -> str :
6464 head = self .peek_unsafe ()
6565
6666 if head .kind != 'WORD' :
@@ -75,7 +75,7 @@ def parse_property_key(self, entry_context: 'BibEntryContext', existing_keys: Co
7575 self .advance ()
7676 return head .value
7777
78- def _parse_escape_sequence (self , value_context : ' BibValueContext' ) -> str :
78+ def _parse_escape_sequence (self , value_context : BibValueContext ) -> str :
7979 lookahead = self .peek_multiple (2 )
8080
8181 if len (lookahead ) == 1 :
@@ -90,7 +90,7 @@ def _parse_escape_sequence(self, value_context: 'BibValueContext') -> str:
9090 case _:
9191 return '\\ ' + lookahead [1 ].value
9292
93- def parse_value_in_context (self , value_context : ' BibValueContext' , key : str , * , quotes : bool ) -> None :
93+ def parse_value_in_context (self , value_context : BibValueContext , key : str , * , quotes : bool ) -> None :
9494 self .advance ()
9595
9696 builder = value_context .string_builder
@@ -190,7 +190,7 @@ def parse_raw_value(self) -> BibString:
190190 def parse_author_string (self , source : BibString ) -> BibAuthor :
191191 return BibAuthor (full_name = source .strip ())
192192
193- def parse_list (self , value_context : ' BibValueContext' ) -> Iterable [BibString ]:
193+ def parse_list (self , value_context : BibValueContext ) -> Iterable [BibString ]:
194194 value = value_context .string_builder .get_value ()
195195 expecting_and = False
196196 buffer = list [BibString ]()
@@ -216,11 +216,11 @@ def parse_list(self, value_context: 'BibValueContext') -> Iterable[BibString]:
216216 if len (buffer ) > 0 :
217217 yield CompositeString (buffer ) if len (buffer ) > 1 else buffer [0 ].strip ()
218218
219- def parse_authors (self , value_context : ' BibValueContext' ) -> Iterable [BibAuthor ]:
219+ def parse_authors (self , value_context : BibValueContext ) -> Iterable [BibAuthor ]:
220220 for entry in self .parse_list (value_context ):
221221 yield self .parse_author_string (entry )
222222
223- def perform_inline_validation (self , value_context : ' BibValueContext' , key : str ) -> None :
223+ def perform_inline_validation (self , value_context : BibValueContext , key : str ) -> None :
224224 value_str = str (value_context .string_builder .get_value ())
225225
226226 if len (value_str ) == 0 or value_str .isspace ():
@@ -230,7 +230,7 @@ def perform_inline_validation(self, value_context: 'BibValueContext', key: str)
230230 for _ in self .parse_authors (value_context ):
231231 pass
232232
233- def parse_entry_properties (self , entry_context : ' BibEntryContext' ) -> Iterable [tuple [str , ' BibValueContext' ]]:
233+ def parse_entry_properties (self , entry_context : BibEntryContext ) -> Iterable [tuple [str , BibValueContext ]]:
234234 existing_keys = set [str ]()
235235 last_comma : BibToken | None = None
236236
@@ -293,12 +293,12 @@ def parse_entry_properties(self, entry_context: 'BibEntryContext') -> Iterable[t
293293 if last_comma is not None :
294294 raise entry_context .annotate_token_error ('Trailing commas are disallowed' , token = last_comma )
295295
296- def perform_global_validation (self , entry_context : ' BibEntryContext' , properties : dict [str , ' BibValueContext' ]) -> None :
296+ def perform_global_validation (self , entry_context : BibEntryContext , properties : dict [str , BibValueContext ]) -> None :
297297 if 'title' not in properties :
298298 raise entry_context .annotate_context_error ('Entry without title' )
299299
300300 @list_accumulator
301- def process_authors (self , properties : dict [str , ' BibValueContext' ], key : str ) -> Iterable [BibAuthor ]:
301+ def process_authors (self , properties : dict [str , BibValueContext ], key : str ) -> Iterable [BibAuthor ]:
302302 if key not in properties :
303303 return
304304
@@ -326,7 +326,7 @@ def process_authors(self, properties: dict[str, 'BibValueContext'], key: str) ->
326326 if short_value_context and len (short_segments ) > 0 :
327327 raise short_value_context .annotate_context_error (error_message )
328328
329- def process_language (self , properties : dict [str , ' BibValueContext' ], key : str ) -> Sequence [BibString ]:
329+ def process_language (self , properties : dict [str , BibValueContext ], key : str ) -> Sequence [BibString ]:
330330 value_context = properties .pop (key , None )
331331
332332 if value_context is None :
0 commit comments