denballakh
denballakh
When `type[type]` is used inside `reveal_type()` i get `Value of type "Type[type]" is not indexable` error: ```py reveal_type(type[type]) # Value of type "Type[type]" is not indexable # Revealed type is...
Consider this example: ```py x: int = 1 class X(x.__class__): # Name "x.__class__" is not defined # Class cannot subclass "__class__" (has type "Any") pass ``` `Name "x.__class__" is not...
```py from typing import Any s: Any = slice(1, 2, 3) class X(s): ... print(X) # slice('X', (slice(1, 2, 3),), {'__module__': '__main__', '__qualname__': 'X'}) x = X() # TypeError: 'slice'...
Consider this example: ```py from __future__ import annotations class X: ... class Y: @property def some_property(self) -> Descriptor: # return Descriptor instance return Descriptor() class Descriptor: def __get__(self, obj: X,...
This line makes your library unusable: https://github.com/xtekky/gpt4free/blob/main/gpt4free/usesless/__init__.py#L10
**Describe the style change** Don't add linebreak in binary operations if right operand is a function with short name and long body. Instead prefer keeping function call on the same...
Are there any up-to-date type stubs for pyimgui? Is there a way to autogenerate them from some source?
imgui wants to change cursor state when it is hovering over something reactive (window edge for resizing, for example). pyimgui lacks this functionality and cursor is always the default one...
My usecase boils down to this: ```py s = c.Struct( 'type' / u32, 'value' / c.Switch(c.this.type, { 1: u32, 2: f32, 3: u32, # will be replaced later }) )...
**Environment:** - `pygame-ce 2.4.1 (SDL 2.28.5, Python 3.12.0)`: **Current behavior:** Consider this code: ```py import pygame as pg s = pg.display.set_mode((250, 250)) # draw the outline where other circles will...