Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
noklam committed Feb 2, 2025
1 parent 00be4ca commit 61d66a4
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions src/ruff_in_python/message.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,24 +57,6 @@ def body(self) -> str:

MessageType = Union[ImportStarUsage, IfTuple]

# # For serialization (if needed):
# def message_to_dict(message: Message) -> dict:
# return {
# "type": message.__class__.__name__,
# "filename": str(message.filename),
# "location": {
# "row": message.location.row,
# "column": message.location.column
# }
# }

# def dict_to_message(data: dict) -> MessageType:
# cls = globals()[data["type"]]
# return cls(
# filename=Path(data["filename"]),
# location=Location(**data["location"])
# )

if __name__ == "__main__":
from rich import print
m1 = IfTuple(Path("some_path"),Location(1,2))
Expand Down

0 comments on commit 61d66a4

Please sign in to comment.