Change to permission/base.py
`
import typing
import functools
T = typing.TypeVar('T')
class classprop(typing.Generic[T]):
def init(self, method: typing.Callable[..., T]):
self.method = method
functools.update_wrapper(self, method) # type: ignore
def __get__(self, obj, cls=None) -> T:
if cls is None:
cls = type(obj)
return self.method(cls)
class ModelPermissions:
"""
Provides the default set of permissions
under the permissions attribute.
"""
@classprop
def permissions(cls) -> typing.Type[ModelDefaultPermissions]:
return ModelDefaultPermissions(cls)`
Change to permission/base.py
`
import typing
import functools
T = typing.TypeVar('T')
class classprop(typing.Generic[T]):
def init(self, method: typing.Callable[..., T]):
self.method = method
functools.update_wrapper(self, method) # type: ignore
class ModelPermissions:
"""
Provides the default set of permissions
under the
permissionsattribute."""