Skip to content

Commit

Permalink
fix: feedback from PR
Browse files Browse the repository at this point in the history
  • Loading branch information
johnfraney committed Jan 20, 2025
1 parent 2e653e3 commit edfbb7b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ select = [
"I", # isort
"UP", # pyupgrade
"W", # pycodestyle warning
"TC", # flake8-typechecking
]

[tool.ruff.lint.per-file-ignores]
Expand All @@ -98,5 +99,4 @@ markers = [
]

[tool.pyright]
include = ["src/**"]
exclude = ["tests/**"]
include = ["src/**", "tests/**"]
8 changes: 4 additions & 4 deletions src/textblob/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def tag(self, text: str, tokenize=True) -> list[tuple[str, str]]:
"""Return a list of tuples of the form (word, tag)
for a given set of text or BaseBlob instance.
"""
raise NotImplementedError("Subclass must implement a tag method")
...


##### NOUN PHRASE EXTRACTORS #####
Expand All @@ -44,7 +44,7 @@ class BaseNPExtractor(metaclass=ABCMeta):
@abstractmethod
def extract(self, text: str) -> list[str]:
"""Return a list of noun phrases (strings) for a body of text."""
raise NotImplementedError("Subclass must implement an extract method")
...


##### TOKENIZERS #####
Expand All @@ -62,7 +62,7 @@ def tokenize(self, text: str) -> list[str]:
:rtype: list
"""
raise NotImplementedError("Subclasss must implement tokenize method")
...

def itokenize(self, text: str, *args, **kwargs):
"""Return a generator that generates tokens "on-demand".
Expand Down Expand Up @@ -121,4 +121,4 @@ class BaseParser(metaclass=ABCMeta):
@abstractmethod
def parse(self, text: AnyStr):
"""Parses the text."""
raise NotImplementedError("Subclass must implement a parse method")
...

0 comments on commit edfbb7b

Please sign in to comment.