Skip to content

Commit

Permalink
lock mistune in dev deps
Browse files Browse the repository at this point in the history
  • Loading branch information
xnuinside committed Apr 24, 2022
1 parent d6c6e20 commit 60f586d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
10 changes: 5 additions & 5 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ m2r = "^0.2.1"
twine = "^3.3.0"
black = "^20.8b1"
flake8 = "^3.8.4"
mistune = "0.8.4"

[tool.poetry.scripts]
sdp = 'simple_ddl_parser.cli:main'
Expand Down
6 changes: 3 additions & 3 deletions simple_ddl_parser/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ def add_line_to_statement(self) -> str:
else:
self.statement += f" {self.line}"

def parse_data(self):
def parse_data(self) -> List[Dict]:
self.tables: List[Dict] = []
data = self.pre_process_data(self.data)
lines = data.replace("\\t", "").split("\\n")
Expand Down Expand Up @@ -228,7 +228,7 @@ def process_line(

self.process_statement()

def process_statement(self):
def process_statement(self) -> None:
if not self.set_line and self.statement:
self.parse_statement()
if self.new_statement:
Expand All @@ -241,7 +241,7 @@ def parse_statement(self) -> None:
if _parse_result:
self.tables.append(_parse_result)

def set_default_flags_in_lexer(self):
def set_default_flags_in_lexer(self) -> None:
attrs = [
"is_table",
"sequence",
Expand Down

0 comments on commit 60f586d

Please sign in to comment.