Skip to content

Commit 354c801

Browse files
fix: forgot posixpath as type for paths
1 parent 90e2bd2 commit 354c801

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/LogseqMarkdownParser/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
import sys
22
import json
3-
from pathlib import Path
3+
from pathlib import Path, PosixPath
44
import fire
5-
from typing import Optional
5+
from typing import Optional, Union
66

77
from .classes import LogseqPage, LogseqBlock
88

99
__VERSION__ = LogseqPage.__VERSION__
1010

1111

1212
def parse_file(
13-
file_path: str = None,
13+
file_path: Union[str, PosixPath] = None,
1414
verbose: bool = False,
1515
out_format: Optional[str] = None,
1616
):

src/LogseqMarkdownParser/classes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import sys
22
import textwrap
33
from typing import Union
4-
from pathlib import Path
4+
from pathlib import Path, PosixPath
55
import uuid
66
import re
77
import json
@@ -211,7 +211,7 @@ def set_property(self, key: str, value: str = None) -> None:
211211

212212
def export_to(
213213
self,
214-
file_path: str,
214+
file_path: Union[str, PosixPath],
215215
overwrite: bool = False,
216216
allow_empty: bool = False,
217217
) -> None:

0 commit comments

Comments
 (0)