-
I think I found an edge case with the annotation `float` when passed an `int` in `beartype`. For convenience, PEP484 accepts int when `float` is annotated: https://www.python.org/dev/peps/pep-0484/#th…
-
This may not be the best practice for ``BioSTEAM``, but this is what I'm doing for ``QSDsan`` since a lot of the equipment in the sanitation systems does not have BM, so I find it easier to default th…
-
I expected here that `test` will be a type of `Cls`:
```lua
---@class Cls
local Cls = {}
---@generic T
---@param self T
---@return T
function Cls.new(self) return self end
local test =…
-
Some classes define stop conditions for the evolutionary process such as MinimumProgress or TimeLimit. Perhaps there is a gap in how these conditions can be added to the pipeline, though.
A conditi…
-
The problems I'd like to solve:
1. Not having python shebang and file template when starting a new file with `.py` extension.
2. Not having proper auto indentation after `class` definition eg
3. …
-
https://user-images.githubusercontent.com/63902683/140805646-05046b48-b086-401b-8d0f-7c5dae3cfd5b.mp4
After upgrading to Fedora 35, the command "sudo bleachbit" takes a long time to execute and…
-
I was reading the `include/pybin11/operator.h`...Link [here](https://github.com/pybind/pybind11/blob/master/include/pybind11/operators.h)
But I do not found the array index operator in the list.
S…
-
- Sublime Version: 4077
- OS Version: macOS 10.15.5
In python files completions are inhibited quite aggressively, I feel. Not sure what is the reasoning for this behavior so I would suggest to rec…
-
I have defined a class
```
class A():
def __init__(self, i:int)->None:
self.i = i
def __add__(self, other:'A')->'A':
return A(self.i + other.i)
```
And compiled it …
-
Extracted from `_pephint.py`
>FIXME: *WOOPS.* The "LRUCacheStrong" (LRUCache) class is absolutely awesome and we'll absolutely be reusing that for various supplementary purposes across the codebase…