Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Data pack attribute interface implementation #926

Open
wants to merge 15 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Resolve black and pylint warnings instruction format conflict
J007X committed Mar 28, 2023
commit b17fdc62df54a38995a27778b527fefde46020ca
4 changes: 3 additions & 1 deletion forte/data/data_pack.py
Original file line number Diff line number Diff line change
@@ -1700,7 +1700,9 @@ def get_attributes_of_type( # type: ignore
get_raw: bool = False,
) -> Iterable: # [EntryType]
def require_annotations(entry_class=Annotation) -> bool:
if self._data_store._is_subclass(s_entry_type, entry_class): # pylint: disable=W0212
if self._data_store._is_subclass( # pylint: disable=W0212
s_entry_type, entry_class
):
return True

curr_class: Type[EntryType] = as_entry_type(s_entry_type)