Skip to content
  • Nsukami Patrick <ptrck at nskm dot xyz>'s avatar
    Fix Argument 1 to "__call__" of "TranslationFunction" has incompatible type · c03be5e0a47c
    Nsukami Patrick authored
    There is some cases where the `get_description` method will return None.
    The TranslationFunction assume the first parameter will be a string, not None.
    
    Alternative solutions:
    - update the condition: vtype is not None and != "Any" (picked solution)
    - assert returned value is not None whenever necessary
    - update TranslationFunction signature to take first parameter as Optional[str].
    - update all the `get_description` methods to always return a str.
    c03be5e0a47c