@@ -4276,7 +4276,6 @@ def _update_argb(self, argb_list: list[int]) -> None:
42764276 if entries and _connection is not None :
42774277 _connection .send_fire_forget ("update_entities" , entries = entries )
42784278
4279-
42804279class MeshDisplay :
42814280 """Render 3D triangle mesh using TextDisplay entities with greedy meshing.
42824281
@@ -4714,7 +4713,6 @@ def update(self, face_colors: "list[tuple[int,int,int,int]] | None" = None,
47144713 if entries and _connection is not None :
47154714 _connection .send_fire_forget ("update_entities" , entries = entries )
47164715
4717-
47184716class Menu :
47194717 """Interactive chest GUI menu with click handlers.
47204718
@@ -5232,7 +5230,6 @@ def _toml_dumps(data: Dict[str, Any]) -> str:
52325230 _toml_write_table (data , [], lines )
52335231 return "\n " .join (lines ) + "\n "
52345232
5235-
52365233def _toml_write_table (data : Dict [str , Any ], path : List [str ], lines : List [str ]):
52375234 """Recursively write a TOML table, emitting simple keys first, then sub-tables."""
52385235 for key , value in data .items ():
@@ -5260,15 +5257,13 @@ def _toml_write_table(data: Dict[str, Any], path: List[str], lines: List[str]):
52605257 lines .append (f"[[{ '.' .join (_toml_key (p ) for p in sub_path )} ]]" )
52615258 _toml_write_table (item , sub_path , lines )
52625259
5263-
52645260def _toml_key (key : str ) -> str :
52655261 """Return a bare TOML key if safe, otherwise a quoted key."""
52665262 if key and all (c .isalnum () or c in "-_" for c in key ):
52675263 return key
52685264 escaped = key .replace ("\\ " , "\\ \\ " ).replace ('"' , '\\ "' )
52695265 return f'"{ escaped } "'
52705266
5271-
52725267def _toml_value (value : Any ) -> str :
52735268 """Encode a Python value as a TOML value string."""
52745269 if isinstance (value , bool ):
@@ -5289,7 +5284,6 @@ def _toml_value(value: Any) -> str:
52895284 escaped = str (value ).replace ("\\ " , "\\ \\ " ).replace ('"' , '\\ "' )
52905285 return f'"{ escaped } "'
52915286
5292-
52935287def _properties_load (path : str ) -> Dict [str , Any ]:
52945288 """Load a Java-style .properties file into a nested dict."""
52955289 data : Dict [str , Any ] = {}
@@ -5317,7 +5311,6 @@ def _properties_load(path: str) -> Dict[str, Any]:
53175311 _properties_set_nested (data , key , _properties_parse_value (val_str ))
53185312 return data
53195313
5320-
53215314def _properties_set_nested (data : Dict [str , Any ], key : str , value : Any ):
53225315 """Set a dot-separated key path in a nested dict."""
53235316 parts = key .split ("." )
@@ -5328,7 +5321,6 @@ def _properties_set_nested(data: Dict[str, Any], key: str, value: Any):
53285321 node = cast (Dict [str , Any ], node [part ])
53295322 node [parts [- 1 ]] = value
53305323
5331-
53325324def _properties_parse_value (value : str ) -> Any :
53335325 """Parse a properties value string into an appropriate Python type."""
53345326 if not value :
@@ -5354,7 +5346,6 @@ def _properties_dumps(data: Dict[str, Any]) -> str:
53545346 _properties_flatten (data , [], lines )
53555347 return "\n " .join (lines ) + "\n "
53565348
5357-
53585349def _properties_flatten (data : Dict [str , Any ], path : List [str ], lines : List [str ]):
53595350 """Flatten a nested dict into dot-separated key=value lines."""
53605351 for key , value in data .items ():
0 commit comments