Skip to content

Commit

Permalink
Fix flake8 errors
Browse files Browse the repository at this point in the history
  • Loading branch information
johndgiese committed Aug 11, 2022
1 parent 489aa08 commit 97b1d30
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 1 deletion n2y/blocks.py
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,10 @@ def to_pandoc(self):
class RowBlock(Block):
def __init__(self, client, notion_data, page, get_children=True):
super().__init__(client, notion_data, page, get_children)
self.cells = [client.wrap_notion_rich_text_array(nc, self) for nc in self.notion_data["cells"]]
self.cells = [
client.wrap_notion_rich_text_array(nc, self)
for nc in self.notion_data["cells"]
]

def to_pandoc(self):
cells = [Cell(
Expand Down
3 changes: 2 additions & 1 deletion n2y/rich_text.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
)

from n2y.utils import pandoc_ast_to_markdown
from n2y.notion_mocks import mock_rich_text


logger = logging.getLogger(__name__)
Expand Down Expand Up @@ -134,7 +135,7 @@ def to_pandoc(self):
class TextRichText(RichText):
@classmethod
def from_plain_text(klass, client, string, block=None):
notion_data = mock_notion_rich_text(string)
notion_data = mock_rich_text(string)
return klass(client, notion_data, block)

def __init__(self, client, notion_data, block=None):
Expand Down

0 comments on commit 97b1d30

Please sign in to comment.