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:
|
def getsource(obj) -> Source:
|
||||||
obj = getrawcode(obj)
|
obj = getrawcode(obj)
|
||||||
strsrc = inspect.getsource(obj)
|
strsrc = inspect.getsource(obj)
|
||||||
assert isinstance(strsrc, str)
|
|
||||||
return Source(strsrc)
|
return Source(strsrc)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user