multidim-typeinf4py / scripts

Collection of scripts for evaluating performance of type annotation processes for Python
0 stars 0 forks source link

Duplicate predictions in MyPy #4

Closed bengsparks closed 1 year ago

bengsparks commented 1 year ago
class C:
    TOGGLE = True

    def f(self, string, number):
        self.person_name = 10
class C:
    TOGGLE: bool
    person_name: int
    def f(self, string, number) -> None: ...
0    mypy  main.pyi     CALLABLE_RETURN            C.f  None
1    mypy  main.pyi  CALLABLE_PARAMETER       C.f.self  <NA>
2    mypy  main.pyi  CALLABLE_PARAMETER     C.f.string  <NA>
3    mypy  main.pyi  CALLABLE_PARAMETER     C.f.number  <NA>
4    mypy  main.pyi     CALLABLE_RETURN              f  <NA>
5    mypy  main.pyi  CALLABLE_PARAMETER            f.i  <NA>
6    mypy  main.pyi  CALLABLE_PARAMETER       f.string  <NA>
7    mypy  main.pyi            VARIABLE  global_go_brr   int
8    mypy  main.pyi            VARIABLE       C.TOGGLE  bool
9    mypy  main.pyi            VARIABLE  C.person_name   int
10   mypy  main.pyi          CLASS_ATTR       C.TOGGLE  bool
11   mypy  main.pyi          CLASS_ATTR  C.person_name   int
bengsparks commented 1 year ago

Consider dropping support for stub files due to limitations in quality