Brian Schubert

Results 52 comments of Brian Schubert

Can someone transfer this issue and python/typeshed#14672 to the typeshed tracker? @JukkaL maybe? cc @tungol

FWIW, this feature is currently provided by ruff's [TCH rules](https://docs.astral.sh/ruff/rules/#flake8-type-checking-tch) / [flake8-type-checking](https://pypi.org/project/flake8-type-checking/)

> Note we will likely need to make mypyc a namespace package in mypy code itself One wrinkle is that `py.typed` files don't work as direct members of namespace packages....

@ilevkivskyi AFAIK yes. For example, this works: ```shell $ git mv mypyc mypy $ git blame mypy/mypyc/codegen/emitclass.py | head 74ca622033 mypyc/emitclass.py (Jukka Lehtosalo 2017-09-03 16:36:05 +0100 1) """Code generation for...

Hmm, at a glance this seem to be accurate to the runtime behavior: there are actually two different `Dialect` classes, [`csv.Dialect`](https://github.com/python/cpython/blob/d5e9aa690a190bcfa9b43cd3858e26b7b2f72d4f/Lib/csv.py#L87) vs [`_csv.Dialect`](https://github.com/python/cpython/blob/aa1dbd4dde32951de2e7438b56d6761001604ee2/Modules/_csv.c#L1755-L1759), and `csv.get_dialect()` doess seem to return the...

As a workaround, you can try using something like ```python from typing import TYPE_CHECKING from PySide6 import QtCore, QtWidgets if TYPE_CHECKING: QtIntProperty = property else: QtIntProperty = QtCore.Property(int) class MyWidget(QtWidgets.QWidget):...

I don't see any obvious public API changes in `ibm_db.c`, but I'll let someone more familiar with these stubs do the final look over and merge

I don't think a PR for this issue has been merged yet (the merged PR above is on a fork).

@sterliakov thanks for the ping! I don't have the time to think about this too deeply now, but at a glance I'd say this seems valid. It wasn't something I...

The relevant section for reference: https://devguide.python.org/getting-started/git-boot-camp/#checking-out-others-pull-requests. Note that the `git config` command in the screenshot isn't quite the same as the one in the devguide. The devguide command uses single...