Git Product home page Git Product logo

Comments (4)

md-work avatar md-work commented on September 20, 2024

This should fix it.
Please review and accept if fine.

--- a/lib/pry-sorbet/commands/unwrap_command.rb
+++ b/lib/pry-sorbet/commands/unwrap_command.rb
@@ -30,7 +30,11 @@ module PrySorbet
       signatures_by_method.values.each do |signature|
         T::Configuration.without_ruby_warnings do
           T::Private::DeclState.current.without_on_method_added do
-            signature.owner.send(:define_method, signature.method_name, signature.method)
+            if signature.mode == T::Private::Methods::Modes.abstract
+              signature.owner.send(:remove_method, signature.method_name)
+            else
+              signature.owner.send(:define_method, signature.method_name, signature.method)
+            end
           end
         end
       end

from pry-sorbet.

paracycle avatar paracycle commented on September 20, 2024

@md-work thanks for pointing this out and recommending a patch for it. the patch looks fine to me, would you like to create a PR for it?

from pry-sorbet.

md-work avatar md-work commented on September 20, 2024

would you like to create a PR for it?

Please just use my patch without a PR.

(I'm quite busy at the moment and I would have to register an SSH key first)

from pry-sorbet.

paracycle avatar paracycle commented on September 20, 2024

It seems this issue was closed when the PR mentioned above was merged.

from pry-sorbet.

Related Issues (3)

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.