Skip to content

Commit 66a546b

Browse files
author
FelixAbrahamsson
committed
improve: disallow unexpected keywords in functional base
1 parent 0524718 commit 66a546b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lantern/functional_base.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
from pydantic import BaseModel
1+
from pydantic import BaseModel, Extra
22

33

44
class FunctionalBase(BaseModel):
55
class Config:
66
allow_mutation = False
7+
extra = Extra.forbid
78

89
def map(self, fn, *args, **kwargs):
910
return fn(self, *args, **kwargs)

0 commit comments

Comments
 (0)