You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the following example I would like to assign a parameter to the static method ImplClass.foo . The reference @ImplClass.foo is not being resolved properly by gin.
from abc import ABC, abstractmethod
import gin
class BaseClass(ABC):
@staticmethod
@abstractmethod
def foo(a):
pass
@gin.register()
class ImplClass(BaseClass):
@gin.register()
def foo(a):
print("hello")
The text was updated successfully, but these errors were encountered:
In the following example I would like to assign a parameter to the static method ImplClass.foo . The reference
@ImplClass.foo
is not being resolved properly by gin.The text was updated successfully, but these errors were encountered: