]> git.scottworley.com Git - pinch/commitdiff
Introduce SearchPath type
authorScott Worley <scottworley@scottworley.com>
Sat, 13 Jun 2020 06:10:08 +0000 (23:10 -0700)
committerScott Worley <scottworley@scottworley.com>
Thu, 18 Jun 2020 06:11:59 +0000 (23:11 -0700)
pinch.py

index 47f4e34a261779d1a880a7693e8cc66b22f2f871..0c0103b2ece62df9c9b1ecbee8bf5fdb2d42a812 100644 (file)
--- a/pinch.py
+++ b/pinch.py
@@ -50,7 +50,11 @@ class ChannelTableEntry(types.SimpleNamespace):
     url: str
 
 
-class Channel(types.SimpleNamespace):
+class SearchPath(types.SimpleNamespace):
+    release_name: str
+
+
+class Channel(SearchPath):
     alias_of: str
     channel_html: bytes
     channel_url: str
@@ -59,7 +63,6 @@ class Channel(types.SimpleNamespace):
     git_repo: str
     git_revision: str
     old_git_revision: str
-    release_name: str
     table: Dict[str, ChannelTableEntry]