Git Product home page Git Product logo

Comments (5)

patrick-kidger avatar patrick-kidger commented on May 3, 2024 1

This looks to be a typeguard bug. Here's a repro without using jaxtyping at all:

from typing_extensions import Annotated
from typeguard import typechecked

@typechecked
def foo(x: Annotated[int, 'a b c']):
    return 1

I'd suggest raising this as an issue on the typeguard issue tracker!

from jaxtyping.

dfuchsgruber avatar dfuchsgruber commented on May 3, 2024

Wasn't sure if typeguard is supposed to be able to handle "arbitrary" annotations, as it seems to only support things that are parsable by ast. Anyway, I'm gonna open a typeguard issue to get response from the devs there, thanks :)

from jaxtyping.

Conchylicultor avatar Conchylicultor commented on May 3, 2024

(oups, wrong issue)

from jaxtyping.

patrick-kidger avatar patrick-kidger commented on May 3, 2024

FWIW I think this is now fixed with more recent typeguard releases, if anyone else would like to confirm.

from jaxtyping.

johnryan465 avatar johnryan465 commented on May 3, 2024

@patrick-kidger the issue has not been fixed but the issue has been closed on the typeguard repo (agronholm/typeguard#353 for anyone else running into this). My solution has been to downgrade to a pre 4.0 version of typeguard for the moment.

from jaxtyping.

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.