-
Quoting Petr in issue gh-93078:
> Anyway, the more important thing to do here is converting the [tutorial](https://docs.python.org/3/extending/extending.html). That will, in my opinion, make the ne…
-
I think B902 is great for detecting errors like this:
```
@classmethod
def foo(self):
...
```
However, I also find myself `# noqa:`ing it a bit too frequently. Here are some instances wh…
-
Version:
```bash
torch 1.11.0+cu113
torchdrug 0.1.2
```
Code:
```Python
from torchdrug import data as td
from torch.distributed.optim import Distrib…
-
Hi Mark,
Thanks for starting the Python 3 repo!
Unfortunately I've noticed you can no longer add MetaClasses to a set anymore; this now raises a TypeError because MetaClass is an unhashable type.
…
-
I have a project with metaclasses setting the `__repr__` method of my classes with nice information. It seems to not be possible to show this kind of thing because the classes are printed with `lib.pr…
-
I am using [custom_inherit](https://github.com/meowklaski/custom_inherit) package to automatically inherit docstrings. It would be great if pydocstyle could somehow detect that and not issue a D102 er…
mitar updated
5 years ago
-
### Current Behavior
from gptcache.adapter.langchain_models import LangChainChat
Traceback (most recent call last):
File "/home/ld/miniconda3/envs/llm/lib/python3.10/runpy.py", line 196, in _ru…
-
This could be done by way of a decorator and a metaclass. I could slip that into `builtins`.
How does a type that inherits from a metaclass and a C class work?
-
Having a look at #3 it seems the main benefit compared to `functools.singledispatch` is the ability to work on structural types.
Therefore I wonder if one can define a hierarchy of protocols via py…
-
### Steps to reproduce - 1:
* Unzip Capella 5.1.0 it2
* Modify capella.ini to have -console, -consoleLog -verbose
* Launch it
* Create a new Capella Project
* In the Activity Explorer, go to th…