Skip to content

Commit

Permalink
FunctionMetadata: Remove param type check
Browse files Browse the repository at this point in the history
  • Loading branch information
sils committed May 16, 2015
1 parent 5e3ba8d commit 1a59a0d
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions coalib/settings/FunctionMetadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,11 +102,6 @@ def from_function(cls, func, omit=[]):
:return: The FunctionMetadata object corresponding to the given
function.
"""
if not isfunction(func) and not ismethod(func):
raise TypeError("function has to be a function")
if not isinstance(omit, list):
raise TypeError("omit has to be a list")

doc = func.__doc__
if doc is None:
doc = ""
Expand Down

1 comment on commit 1a59a0d

@Makman2
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ack

Please sign in to comment.