Elton Cardoso Do Nascimento
01/16/2025, 9:23 PMElijah Ben Izzy
01/16/2025, 9:27 PMElton Cardoso Do Nascimento
01/16/2025, 9:33 PMdef hello() -> Parallizable[str]:
return ["h", "a", "b"]
a = hello()
b = a[0]
The linter can't identify that "a" has the methods of a list, nor that "b" is a strElton Cardoso Do Nascimento
01/16/2025, 9:34 PMdef is_parallelizable(type:Type) -> bool:
print(type, type.__bases__, Parallelizable in type.__bases__)
return type == Parallelizable or Parallelizable in type.__bases__Elijah Ben Izzy
01/16/2025, 9:34 PMElton Cardoso Do Nascimento
01/16/2025, 9:36 PMElton Cardoso Do Nascimento
01/16/2025, 9:37 PMElijah Ben Izzy
01/16/2025, 9:38 PMElton Cardoso Do Nascimento
01/16/2025, 9:39 PMElijah Ben Izzy
01/16/2025, 9:43 PMElton Cardoso Do Nascimento
01/16/2025, 11:17 PMElijah Ben Izzy
01/17/2025, 2:53 PMElijah Ben Izzy
01/18/2025, 5:58 AM