Comments (4)
Confirmed that working with the current release of Monkeytype and libcst==1.1.0
everything's fine on this issue, do you have a tracking issue for the other bug that you observed?
from monkeytype.
I meant that I'm observing the same output as you do, I'm also running into fun issues with ellipses not having qualnames in the serialization phase that I'm trying to get a replication of for you, I have a fork that adds in a branch to account for it but it's a hacky fix for a problem that I can't replicate on another computer.
from monkeytype.
I'm not able to reproduce the results you show. Using Python 3.12 and the latest MonkeyType and the code in your gist (after pip install scikit-image
), I ran monkeytype run NumPyCNN.py
and then monkeytype apply --pep_563 extracted_conv_
, after which the first few lines of extracted_conv_.py
look like this:
from __future__ import annotations
import skimage.data
import sys
from typing import TYPE_CHECKING
if TYPE_CHECKING:
from numpy import ndarray
def extracted_conv_(filter_size: int, img: numpy.ndarray,conv_filter: numpy.ndarray,result: numpy.ndarray) -> numpy.ndarray:
This is buggy (because the annotations use numpy.ndarray
while the import is from numpy import ndarray
), but it doesn't look quite as buggy as your report shows.
I'll look into fixing the bug I observe; let me know if you have any further theories about what I should try to reproduce your results. It might be related to the LibCST version; I'm using libcst==1.1.0
.
from monkeytype.
I don't, I'm inclined to just reopen this issue and use it, since it's the same repro case (albeit different output.)
When you say "everything's fine on this issue," do you mean that you observe the same output I did (which is not exactly "fine" but it isn't as bad as what you got), or do you mean that you actually observe fully-working output?
from monkeytype.
Related Issues (20)
- Compare observed types to existing type annotations HOT 1
- Empty lists result in overly broad types HOT 1
- Issue with Callable type for < Python 3.9 HOT 4
- Better documentation for how to use MonkeyType with multiple processes/threads HOT 3
- Collect types for non-module functions HOT 1
- provide a type rewriter to find common base class HOT 5
- how open Instagram without password
- Adding an index to monkeytype.sqlite3 speeds up stub generation HOT 1
- Keyword-only arguments are not captured in traces
- Calls to locally defined functions are not captured
- `*args` and `**kwargs` are not captured in traces HOT 1
- Add pre-commit support HOT 1
- `AttributeError: 'ellipsis' object has no attribute '__qualname__'` HOT 1
- Support PEP 585 - list[int] instead of typing.List[int]
- Stubs with positional-only args output too many slashes and cause a SyntaxError
- Error when parameter in external file is class defined in `__main__` HOT 1
- Return type not traced when returning constant (Python ≥ 3.12)
- monkeytype apply seems to attempt to import my whole program, causing monkeytype: error: unrecognized arguments:
- checking instagrm password
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from monkeytype.