Eugene Toder
Eugene Toder
Currently addToLocalStorage() catches exceptions from webStorage.setItem() and falls back to writing to cookies if an exception happened ([code](https://github.com/grevory/angular-local-storage/blob/cbb195fcfb114e9bd1d6669f04f46ef18ddbad66/src/angular-local-storage.js#L169)). This seems wrong: * It doesn't check self.defaultToCookie before doing so. *...
1. Add a missing lock to ImportHookFinder.find_spec(). It should have the same lock as find_module() since it accesses _post_import_hooks. 2. Fix a deadlock between notify_module_loaded() and ImportHookFinder. This occurs because...
**Bug Report** `not isinstance` check fails to narrow type for a TypeVar with a union bound. **To Reproduce** ```python from typing import TypeVar T = TypeVar("T", bound=int | str) def...
**Bug Report** Overload resolution appears to pick the first matching overload if the argument type is an alias to Any. It should consider all overloads. This works correctly when using...
While developing tests it is quite handy to put in breakpoints or extra prints. At the moment, when a test is run by green, breakpoints do not work because stdin...
Use a typemap to handle conversion from Handles to Observable. This is compatible with -builtin and avoids code duplication. Also, remove unneeded {} in typemaps.
I've found the following code in the Python SWIG bindigs: ```swig %pythoncode %{ Date._old___add__ = Date.__add__ Date._old___sub__ = Date.__sub__ def Date_new___add__(self,x): if type(x) is tuple and len(x) == 2: return...
Consider the following example: ```python from typing import TypeVar T = TypeVar("T") def test(obj: T | None) -> type[T]: if obj is None: raise TypeError return obj.__class__ test(123) ``` This...
Consider the following example, which has to be split in 2 files: #### ids.py ```python from typing import Callable, Optional, overload class Base: id: "ClassId" class ClassId: @overload def __get__(self,...
Consider the following example: ```python from typing import Protocol, TypeVar class HasClassId(Protocol): id: "ClassId" IdT = TypeVar("IdT", bound=HasClassId) class ClassId: def __get__(self, obj: IdT | None, owner: type[IdT] | None...