clean
This commit is contained in:
parent
1ff23e58e8
commit
2767402d9f
|
@ -1,5 +1,4 @@
|
||||||
import argparse
|
import argparse
|
||||||
import os
|
|
||||||
|
|
||||||
from bebop.browser import Browser
|
from bebop.browser import Browser
|
||||||
from bebop.fs import get_user_data_path
|
from bebop.fs import get_user_data_path
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
import curses
|
import curses
|
||||||
import curses.ascii
|
import curses.ascii
|
||||||
import curses.textpad
|
import curses.textpad
|
||||||
import typing
|
|
||||||
|
|
||||||
from bebop.links import Links
|
from bebop.links import Links
|
||||||
|
|
||||||
|
@ -129,7 +128,7 @@ class CommandLine:
|
||||||
return 1, None
|
return 1, None
|
||||||
try:
|
try:
|
||||||
link_id = int(link_input)
|
link_id = int(link_input)
|
||||||
except ValueError as exc:
|
except ValueError:
|
||||||
return 2, f"Invalid link ID {link_input}."
|
return 2, f"Invalid link ID {link_input}."
|
||||||
return 0, link_id
|
return 0, link_id
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@ https://github.com/ActiveState/appdirs/blob/master/appdirs.py
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from os import getenv
|
from os import getenv
|
||||||
from os.path import expanduser, join
|
from os.path import expanduser
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -6,8 +6,8 @@ module. A renderer can then completely abstract the original document.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import re
|
import re
|
||||||
import typing
|
|
||||||
from dataclasses import dataclass
|
from dataclasses import dataclass
|
||||||
|
from typing import List
|
||||||
|
|
||||||
|
|
||||||
@dataclass
|
@dataclass
|
||||||
|
@ -31,7 +31,7 @@ class Link:
|
||||||
|
|
||||||
@dataclass
|
@dataclass
|
||||||
class Preformatted:
|
class Preformatted:
|
||||||
lines: typing.List[str]
|
lines: List[str]
|
||||||
FENCE = "```"
|
FENCE = "```"
|
||||||
|
|
||||||
|
|
||||||
|
|
Reference in a new issue