We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 289f7a2 commit 0389d40Copy full SHA for 0389d40
setuptools_scm/version.py
@@ -22,13 +22,14 @@ def _warn_if_setuptools_outdated():
22
23
def callable_or_entrypoint(group, callable_or_name):
24
trace('ep', (group, callable_or_name))
25
- if isinstance(callable_or_name, str):
26
- for ep in iter_entry_points(group, callable_or_name):
27
- trace("ep found:", ep.name)
28
- return ep.load()
29
- else:
+
+ if callable(callable_or_name):
30
return callable_or_name
31
+ for ep in iter_entry_points(group, callable_or_name):
+ trace("ep found:", ep.name)
+ return ep.load()
32
33
34
def tag_to_version(tag):
35
trace('tag', tag)
0 commit comments