Giter Site home page Giter Site logo

Comments (4)

sternj avatar sternj commented on June 14, 2024 1

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.

sternj avatar sternj commented on June 14, 2024 1

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.

carljm avatar carljm commented on June 14, 2024

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.

carljm avatar carljm commented on June 14, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.