summaryrefslogtreecommitdiff
path: root/t.py
diff options
context:
space:
mode:
authorYobmod <yobmod@gmail.com>2021-07-28 20:40:29 +0100
committerYobmod <yobmod@gmail.com>2021-07-28 20:40:29 +0100
commit390efbf521d62d9cb188c7688288878ef1b1b45d (patch)
treea0edfe8378982d3b6f1979e8b1b4b5a09df40a6e /t.py
parentb8b07b9ff5fe478b872d3da767e549841da02205 (diff)
downloadgitpython-390efbf521d62d9cb188c7688288878ef1b1b45d.tar.gz
Fix more missing types in Symbolic.py, cos GuthubActions pytest stuck
Diffstat (limited to 't.py')
-rw-r--r--t.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/t.py b/t.py
new file mode 100644
index 00000000..560e420e
--- /dev/null
+++ b/t.py
@@ -0,0 +1,9 @@
+from git import Repo
+
+
+def get_active_branch(gitobj: Repo) -> str:
+ return gitobj.active_branch.name
+
+
+gitobj = Repo(".")
+print(get_active_branch(gitobj))