Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions obsidiantools/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ def front_matter_index(self) -> dict[str, list[str]]:
return self._front_matter_index

@front_matter_index.setter
def front_matter_index(self, value) -> dict[str, list[str]]:
def front_matter_index(self, value) -> dict[str, dict]:
self._front_matter_index = value

@property
Expand Down Expand Up @@ -960,7 +960,7 @@ def get_md_links(self, file_name: str) -> list[str]:
else:
return self._md_links_index[file_name]

def get_front_matter(self, file_name: str) -> list[dict]:
def get_front_matter(self, file_name: str) -> dict:
"""Get front matter for a note (given its filename).

Front matter can only appear in notes that already exist, so if a
Expand All @@ -972,7 +972,7 @@ def get_front_matter(self, file_name: str) -> list[dict]:
This is NOT the filepath!

Returns:
list
dict
"""
if not self._is_connected:
raise AttributeError('Connect notes before calling the function')
Expand Down