Merge pull request #179 from figsoda/escape

escape attribute names
This commit is contained in:
Jörg Thalheim 2023-08-02 06:43:04 +01:00 committed by GitHub
commit e880e386a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,3 +1,4 @@
import json
import os
from dataclasses import dataclass, field
from typing import List, Optional
@ -26,3 +27,6 @@ class Options:
format: bool = False
system: Optional[str] = None
extra_flags: List[str] = field(default_factory=list)
def __post_init__(self) -> None:
self.attribute = json.dumps(self.attribute)