Commit 6dd36bba authored by Kai Willadsen's avatar Kai Willadsen

Minor type hint additions in painful places

parent b5c38782
......@@ -14,8 +14,11 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
from typing import Dict, Tuple
import cairo
from gi.repository import Gdk
from gi.repository import GdkPixbuf
from gi.repository import GObject
from gi.repository import Gtk
......@@ -24,7 +27,7 @@ class EmblemCellRenderer(Gtk.CellRenderer):
__gtype_name__ = "EmblemCellRenderer"
icon_cache = {}
icon_cache: Dict[Tuple[str, int], GdkPixbuf.Pixbuf] = {}
icon_name = GObject.Property(
type=str,
......
......@@ -29,6 +29,7 @@ import re
import shutil
import subprocess
import tempfile
from typing import ClassVar
from gi.repository import Gio
from gi.repository import GLib
......@@ -126,12 +127,12 @@ class Entry:
class Vc:
VC_DIR = None
VC_DIR: ClassVar[str]
#: Whether to walk the current location's parents to find a
#: repository root. Only used in legacy version control systems
#: (e.g., old SVN, CVS, RCS).
VC_ROOT_WALK = True
VC_ROOT_WALK: ClassVar[bool] = True
def __init__(self, path):
# Save the requested comparison location. The location may be a
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment