Jared Van Bortel

Results 95 issues of Jared Van Bortel

#### Software versions Python 3.9.9 pytype 2021.12.15 #### Example ```python from typing import Generic, TypeVar T = TypeVar('T') class Foo(Generic[T]): def __init__(self, x: list[T]): pass foo = Foo(['a']) reveal_type(foo) #...

bug
cat: generics

#### Software versions Python 3.9.7 pytype 2021.11.18 #### Testcases repr1.py: ```python import mmap x = mmap.mmap(-1, 4096) y = memoryview(x) ``` repr2.py: ```python import array x = array.array('B') y =...

bug
cat: stubs and 3p

#### Software versions Python 3.9.7 pytype 2021.11.18 #### Testcase ```python class Foo: def __init__(self, fun): self.fun = fun def call(self, **kwargs): return self.fun(**kwargs) ``` #### Description ``` $ pytype-single -o-...

bug
cat: callables

### Software versions Python 3.8.12, 3.9.7 pytype 2021.11.18, 2021.11.29 This is a regression caused by 2a6a1cebb13a71d5a2dda08ef2e260a81659b392, which enabled the --gen-stub-imports flag by default. ### Testcase Structure: ``` foo ├── a.py...

bug
cat: infrastructure

#### Software versions Python 3.9.7 pytype 2021.11.29 #### Testcase ```python x = [0] def get(i): return x[i] ``` #### Description `pytype-single --protocols repr.py` generates this .pyi: ```python from typing import...

bug
cat: protocols

#### Software versions Python 3.9.7 pytype 2021.11.24 (not present on 2021.11.18) #### Reproducer ```python import os ``` #### Description Running `pytype --protocols repr.py` generates a `repr.pyi` with this content: ```...

bug
cat: stubs and 3p

Relevant code: https://github.com/eiskaltdcpp/eiskaltdcpp/blob/6112ed719b3fd65aedf002b33a4871429f5b1fe5/eiskaltdcpp-gtk/src/dialogentry.cc#L56-L59 This class deletes itself before reading `this->responseID`. This is undefined behavior. The simple fix is to copy `responseID` to a temporary variable before deleting the instance, then...

If a function argument contains multiplication, a C815 error ("... in Python 3.5+") is reported instead of C812, as if the expression includes tuple unpacking. This is misleading, because even...

#### Issue Description The following deserialization code (in `veikk_set_veikk_screen_size`) upsets clang-tidy. https://github.com/jlam55555/veikk-linux-driver/blob/7ccdfb127f3082034e95da778f22b0ec65d8e7fc/veikk_modparms.c#L51-L57 This is what clang-tidy says about it: ``` veikk_modparms.c:56:57: warning: The left operand of '

I wrote some code based on this example, and I realized that the computed block address isn't always correct. https://github.com/knorrie/python-btrfs/blob/4aa37fc7f5b8133d30abf3ba398fa44d1b03c7ea/examples/show_file_csum.py#L89-L97 The printed message on line 89 describes the meaning of...

pending