code/source: remove unneeded assert
inspect.getsource() definitely returns str.
This commit is contained in:
@@ -309,7 +309,6 @@ def getrawcode(obj, trycall: bool = True):
|
||||
def getsource(obj) -> Source:
|
||||
obj = getrawcode(obj)
|
||||
strsrc = inspect.getsource(obj)
|
||||
assert isinstance(strsrc, str)
|
||||
return Source(strsrc)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user