Skip to content

Commit 1cae247

Browse files
Update dependency rbs to v4 (#778)
This PR contains the following updates: | Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) | |---|---|---|---| | [rbs](https://redirect.github.com/ruby/rbs) ([changelog](https://redirect.github.com/ruby/rbs/blob/master/CHANGELOG.md)) | `'~> 3.10.0'` → `'~> 4.0.0'` | ![age](https://developer.mend.io/api/mc/badges/age/rubygems/rbs/4.0.2?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/rubygems/rbs/3.10.4/4.0.2?slim=true) | --- ### Release Notes <details> <summary>ruby/rbs (rbs)</summary> ### [`v4.0.2`](https://redirect.github.com/ruby/rbs/blob/HEAD/CHANGELOG.md#402-2026-03-25) [Compare Source](https://redirect.github.com/ruby/rbs/compare/v4.0.1...v4.0.2) ##### Library changes ##### rbs collection - Fix: pathname not written to lockfile. ([#&#8203;2889](https://redirect.github.com/ruby/rbs/pull/2889)) ##### Miscellaneous - Fix test failure on Windows in `ruby/ruby` ([#&#8203;2900](https://redirect.github.com/ruby/rbs/pull/2900)) - Fix test for Ruby 4.1 ([#&#8203;2899](https://redirect.github.com/ruby/rbs/pull/2899)) ### [`v4.0.1`](https://redirect.github.com/ruby/rbs/blob/HEAD/CHANGELOG.md#401-2026-03-23) [Compare Source](https://redirect.github.com/ruby/rbs/compare/v4.0.0...v4.0.1) This is a minor release to fix Ruby CI failure, which was caused by symlinks included in the `rust` directory. ##### Library changes - Fix `() -> (void)` being rejected as SyntaxError ([#&#8203;2884](https://redirect.github.com/ruby/rbs/pull/2884)) ##### Miscellaneous - Drop crates ([#&#8203;2887](https://redirect.github.com/ruby/rbs/pull/2887)) - Add newline at eof ([#&#8203;2885](https://redirect.github.com/ruby/rbs/pull/2885)) ### [`v4.0.0`](https://redirect.github.com/ruby/rbs/blob/HEAD/CHANGELOG.md#400-2026-03-16) [Compare Source](https://redirect.github.com/ruby/rbs/compare/v3.10.4...v4.0.0) RBS 4.0 ships with experimental RBS inline syntax support, allowing you to write type annotations directly in Ruby source files. See [docs/inline.md](docs/inline.md) for the syntax details. ```ruby class Calculator # @&#8203;rbs (Integer, Integer) -> Integer def add(a, b) = a + b end ``` Note: RBS inline is still experimental and may change in future releases. This release also introduces two language changes: type argument support for singleton types (`singleton(T)[S]`) mainly for Sorbet integration, and generic type parameter lower bounds (`T < S`). ##### Signature updates **Updated classes/modules/methods:** `Addrinfo`, `Array`, `BasicObject`, `BigDecimal`, `Binding`, `CGI`, `Comparable`, `Complex`, `Digest::SHA2`, `Encoding::Converter`, `Enumerable`, `Enumerator`, `Enumerator::ArithmeticSequence`, `Enumerator::Lazy`, `Fiber`, `File`, `FileUtils`, `Float`, `Hash`, `IO`, `IO::TimeoutError`, `Integer`, `JSON`, `Kernel`, `Kconv`, `Math`, `Method`, `Minitest`, `Module`, `Numeric`, `ObjectSpace`, `Open3`, `OpenURI`, `OptionParser`, `PStore`, `Pathname`, `Proc`, `Process::Status`, `Psych`, `Ractor`, `Random`, `Random::Formatter`, `Range`, `Rational`, `RBS::Unnamed::TopLevelSelfClass`, `Ripper::Lexer::Elem`, `Ruby`, `RubyVM`, `SecureRandom`, `Set`, `Socket`, `String`, `StringScanner`, `TCPSocket`, `Thread`, `URI`, `URI::Generic`, `Zlib::GzipReader`, `Zlib::GzipWriter` - Remove deprecated types ([#&#8203;2880](https://redirect.github.com/ruby/rbs/pull/2880)) - Add type `RBS::Unnamed::TopLevelSelfClass` to core ([#&#8203;2362](https://redirect.github.com/ruby/rbs/pull/2362)) - Graduate bundled gems from Ruby v4.0 ([#&#8203;2852](https://redirect.github.com/ruby/rbs/pull/2852)) - stdlib: Add missing Psych methods and exception classes ([#&#8203;2850](https://redirect.github.com/ruby/rbs/pull/2850)) - Add variants with positional argument to `Hash#transform_keys` ([#&#8203;2848](https://redirect.github.com/ruby/rbs/pull/2848)) - add extra kwarg options for File#initialize and derivatives ([#&#8203;2798](https://redirect.github.com/ruby/rbs/pull/2798)) - pstore: fixes types, treat it as a collection ([#&#8203;2806](https://redirect.github.com/ruby/rbs/pull/2806)) - Add signatures for `{Module,Proc}#ruby2_keywords` ([#&#8203;2805](https://redirect.github.com/ruby/rbs/pull/2805)) - Make Zlib::GzipWriter.new level and strategy parameters optional ([#&#8203;2810](https://redirect.github.com/ruby/rbs/pull/2810)) - URI.(s) does string coercion ([#&#8203;2825](https://redirect.github.com/ruby/rbs/pull/2825)) - Fix String#append\_as\_bytes to accept Integer ([#&#8203;2817](https://redirect.github.com/ruby/rbs/pull/2817)) - \[Comparable] Add in Comparable::\_CompareToZero ([#&#8203;2697](https://redirect.github.com/ruby/rbs/pull/2697)) - \[Kernel] Add Kernel.trace\_var and Kernel.untrace\_var ([#&#8203;2682](https://redirect.github.com/ruby/rbs/pull/2682)) - Add signature for `Module#method_undefined` ([#&#8203;2804](https://redirect.github.com/ruby/rbs/pull/2804)) - Fix Zlib::GzipWriter signatures ([#&#8203;2803](https://redirect.github.com/ruby/rbs/pull/2803)) - GzipWriter#initialize only takes 1 required positional arg ([#&#8203;2799](https://redirect.github.com/ruby/rbs/pull/2799)) - Fix accessibility of method in Module ([#&#8203;2802](https://redirect.github.com/ruby/rbs/pull/2802)) - Graduate kconv ([#&#8203;2794](https://redirect.github.com/ruby/rbs/pull/2794)) - Fix test related to pathname ([#&#8203;2789](https://redirect.github.com/ruby/rbs/pull/2789)) - Split pathname to core and stdlib ([#&#8203;2777](https://redirect.github.com/ruby/rbs/pull/2777)) - \[Kernel] Narrow `caller_locations` ([#&#8203;2745](https://redirect.github.com/ruby/rbs/pull/2745)) - Ruby 4.1 changed `source_location` type ([#&#8203;2784](https://redirect.github.com/ruby/rbs/pull/2784)) - Remove ObjectSpace.count\_nodes ([#&#8203;2779](https://redirect.github.com/ruby/rbs/pull/2779)) - Support selector for `String#strip` family. ([#&#8203;2775](https://redirect.github.com/ruby/rbs/pull/2775)) - Add `Ruby`, `Array#find`, and `Array#rfind` ([#&#8203;2767](https://redirect.github.com/ruby/rbs/pull/2767)) - Update minitest ([#&#8203;2761](https://redirect.github.com/ruby/rbs/pull/2761)) - Support BigDecimal v4 ([#&#8203;2758](https://redirect.github.com/ruby/rbs/pull/2758)) - Update rdoc and comments ([#&#8203;2733](https://redirect.github.com/ruby/rbs/pull/2733)) - Update cgi and cgi/escape type definitions ([#&#8203;2728](https://redirect.github.com/ruby/rbs/pull/2728)) - Update RBS files for Ruby 4 ([#&#8203;2731](https://redirect.github.com/ruby/rbs/pull/2731)) - Update existing docs ([#&#8203;2724](https://redirect.github.com/ruby/rbs/pull/2724)) - Remove reference to `JSON.deep_const_get` ([#&#8203;2701](https://redirect.github.com/ruby/rbs/pull/2701)) - Remove deprecated methods in `JSON` ([#&#8203;2366](https://redirect.github.com/ruby/rbs/pull/2366)) - Update FileUtils to v1.8.0 ([#&#8203;2700](https://redirect.github.com/ruby/rbs/pull/2700)) - Avoid overloading where arguments are identical ([#&#8203;2559](https://redirect.github.com/ruby/rbs/pull/2559)) - Move Pathname to core from stdlib ([#&#8203;2705](https://redirect.github.com/ruby/rbs/pull/2705)) - Remove undocumented `#nonzero?` ([#&#8203;2543](https://redirect.github.com/ruby/rbs/pull/2543)) - Add signature for `OptionParser#raise_unknown` ([#&#8203;2735](https://redirect.github.com/ruby/rbs/pull/2735)) - Add signature for `Open3.popen2` ([#&#8203;2734](https://redirect.github.com/ruby/rbs/pull/2734)) - Add RFC2396\_PARSER to URI module ([#&#8203;2727](https://redirect.github.com/ruby/rbs/pull/2727)) - Add signature for `Open3.capture3` ([#&#8203;2714](https://redirect.github.com/ruby/rbs/pull/2714)) - Remove sig for IO#{ready?,nread} ([#&#8203;2710](https://redirect.github.com/ruby/rbs/pull/2710)) - Accept `nil` state parameter in `to_json` type signatures ([#&#8203;2691](https://redirect.github.com/ruby/rbs/pull/2691)) - Add type of `Open3.popen3` ([#&#8203;2699](https://redirect.github.com/ruby/rbs/pull/2699)) - `unsetenv_others` and `close_others` only allows bool. ([#&#8203;2698](https://redirect.github.com/ruby/rbs/pull/2698)) - Add deprecated annotation to `attr` with bool args ([#&#8203;2693](https://redirect.github.com/ruby/rbs/pull/2693)) - Update open3 ([#&#8203;2692](https://redirect.github.com/ruby/rbs/pull/2692)) - Add signature for `SecureRandom.bytes` ([#&#8203;2690](https://redirect.github.com/ruby/rbs/pull/2690)) - Set %a{deprecated} to deprecated core methods ([#&#8203;2664](https://redirect.github.com/ruby/rbs/pull/2664)) - Migrate usages of ::\_ToPath to use ::path instead ([#&#8203;2677](https://redirect.github.com/ruby/rbs/pull/2677)) - Add missing signatures for `Random::Formatter` ([#&#8203;2680](https://redirect.github.com/ruby/rbs/pull/2680)) - Split `Random::Formatter` to core and stdlib ([#&#8203;2661](https://redirect.github.com/ruby/rbs/pull/2661)) - Skip test cases of developing methods for Pathname ([#&#8203;2648](https://redirect.github.com/ruby/rbs/pull/2648)) - Add signature `Random.seed` ([#&#8203;2649](https://redirect.github.com/ruby/rbs/pull/2649)) - Update `string.rbs` to avoid deprecation warning in Steep ([#&#8203;2655](https://redirect.github.com/ruby/rbs/pull/2655)) - Add sig `IO#pread` and `IO#pwrite` ([#&#8203;2647](https://redirect.github.com/ruby/rbs/pull/2647)) - Refine signature of `Numeric#step` and add type of `Enumerator::ArithmeticSequence` ([#&#8203;2600](https://redirect.github.com/ruby/rbs/pull/2600)) - Remove undocumented override methods ([#&#8203;2622](https://redirect.github.com/ruby/rbs/pull/2622)) - Add docs ([#&#8203;2625](https://redirect.github.com/ruby/rbs/pull/2625)) - Remove undocumented methods for `imaginary` ([#&#8203;2620](https://redirect.github.com/ruby/rbs/pull/2620)) - Update securerandom ([#&#8203;2619](https://redirect.github.com/ruby/rbs/pull/2619)) - Drop undocumented `#eql?` ([#&#8203;2618](https://redirect.github.com/ruby/rbs/pull/2618)) - Just use `Numeric#+@&#8203;` and return self ([#&#8203;2597](https://redirect.github.com/ruby/rbs/pull/2597)) - Drop undocumented `#dup` ([#&#8203;2598](https://redirect.github.com/ruby/rbs/pull/2598)) - Add signature for `Digest::SHA2` ([#&#8203;2573](https://redirect.github.com/ruby/rbs/pull/2573)) - Add signatures for `OpenURI` ([#&#8203;2574](https://redirect.github.com/ruby/rbs/pull/2574)) - Add signature for `IO::TimeoutError` ([#&#8203;2571](https://redirect.github.com/ruby/rbs/pull/2571)) - Add signatures for `Set` ([#&#8203;2570](https://redirect.github.com/ruby/rbs/pull/2570)) - Add signature for `Enumerator#+` ([#&#8203;2567](https://redirect.github.com/ruby/rbs/pull/2567)) - Add signature for `Enumerator::Lazy#eager` ([#&#8203;2568](https://redirect.github.com/ruby/rbs/pull/2568)) - Add signature for `Fiber#blocking` ([#&#8203;2566](https://redirect.github.com/ruby/rbs/pull/2566)) - Support BasicObject to avoid NoMethodError for `RBS::Test::TypeCheck` ([#&#8203;2565](https://redirect.github.com/ruby/rbs/pull/2565)) - Add documentation for `Range#{minmax,count,to_a,entries}` ([#&#8203;2562](https://redirect.github.com/ruby/rbs/pull/2562)) - Delegate to `Enumerable` from `Range#{min,max}` ([#&#8203;2540](https://redirect.github.com/ruby/rbs/pull/2540)) - Add URI::Generic#+ ([#&#8203;2535](https://redirect.github.com/ruby/rbs/pull/2535)) - Make IO.binread, IO.binwrite, IO.read and IO.write accept \_ToPath ([#&#8203;2378](https://redirect.github.com/ruby/rbs/pull/2378)) - Support pattern argument for Enumerable#{all,any,none,one}? ([#&#8203;2368](https://redirect.github.com/ruby/rbs/pull/2368)) - fixing sig for addrinfo ([#&#8203;2464](https://redirect.github.com/ruby/rbs/pull/2464)) ##### Language updates - Add type arguments support to singleton types ([#&#8203;2502](https://redirect.github.com/ruby/rbs/pull/2502)) - Move the note about lower bound ([#&#8203;2517](https://redirect.github.com/ruby/rbs/pull/2517)) - Add support for lower bounds in type parameters ([#&#8203;2490](https://redirect.github.com/ruby/rbs/pull/2490)) ##### Library changes - Add `#type_fingerprint` methods ([#&#8203;2879](https://redirect.github.com/ruby/rbs/pull/2879)) - `top` for membership predicates of collection types ([#&#8203;2878](https://redirect.github.com/ruby/rbs/pull/2878)) - Add block parameter (`&block`) type declaration ([#&#8203;2875](https://redirect.github.com/ruby/rbs/pull/2875)) - Add splat (`*a`) and double-splat (`**a`) parameter support ([#&#8203;2873](https://redirect.github.com/ruby/rbs/pull/2873)) - Add parameter type inline annotation ([#&#8203;2443](https://redirect.github.com/ruby/rbs/pull/2443)) - Reduce compile warnings ([#&#8203;2871](https://redirect.github.com/ruby/rbs/pull/2871)) - Specify input range by byte offsets ([#&#8203;2863](https://redirect.github.com/ruby/rbs/pull/2863)) - add `extern "C"` wrapping to `rbs.h` when using C++ ([#&#8203;2855](https://redirect.github.com/ruby/rbs/pull/2855)) - Automatically inherits super method type if unannotated ([#&#8203;2858](https://redirect.github.com/ruby/rbs/pull/2858)) - Add `...` syntax to method type inline annotation syntax ([#&#8203;2856](https://redirect.github.com/ruby/rbs/pull/2856)) - Fix for string reference corruption issue ([#&#8203;2836](https://redirect.github.com/ruby/rbs/pull/2836)) - Use unreleased steep for `rake typecheck_test` ([#&#8203;2842](https://redirect.github.com/ruby/rbs/pull/2842)) - Fix breaking references after GC.compact ([#&#8203;2822](https://redirect.github.com/ruby/rbs/pull/2822)) - Fix special methods accessibility. ([#&#8203;2546](https://redirect.github.com/ruby/rbs/pull/2546)) - Fix allocation alignment ([#&#8203;2788](https://redirect.github.com/ruby/rbs/pull/2788)) - Skip `set` and `pathname` from `manifest.yaml` ([#&#8203;2773](https://redirect.github.com/ruby/rbs/pull/2773)) - Fix C++ compiler warnings ([#&#8203;2755](https://redirect.github.com/ruby/rbs/pull/2755)) - Better encoding ([#&#8203;2675](https://redirect.github.com/ruby/rbs/pull/2675)) - Move `require_eof` handling to C API ([#&#8203;2678](https://redirect.github.com/ruby/rbs/pull/2678)) - Delete debug print ([#&#8203;2753](https://redirect.github.com/ruby/rbs/pull/2753)) - Make assertions macro ([#&#8203;2729](https://redirect.github.com/ruby/rbs/pull/2729)) - Remove deprecated method `Kernel#Namespace`. Also remove `Kernel#TypeName`. ([#&#8203;2480](https://redirect.github.com/ruby/rbs/pull/2480)) - Update rdoc to 6.13.1 ([#&#8203;2355](https://redirect.github.com/ruby/rbs/pull/2355)) - Allow `self` for inline `@rbs @&#8203;ivar: self` ([#&#8203;2633](https://redirect.github.com/ruby/rbs/pull/2633)) - Normalize modules during type name resolution ([#&#8203;2670](https://redirect.github.com/ruby/rbs/pull/2670)) - Only load extconf\_compile\_commands\_json when compiling through Rake ([#&#8203;2498](https://redirect.github.com/ruby/rbs/pull/2498)) - Use `malloc` based allocator ([#&#8203;2666](https://redirect.github.com/ruby/rbs/pull/2666)) - Add another parser benchmark script ([#&#8203;2668](https://redirect.github.com/ruby/rbs/pull/2668)) - Reuse empty array and hash ([#&#8203;2667](https://redirect.github.com/ruby/rbs/pull/2667)) - Faster lexical analyzer ([#&#8203;2665](https://redirect.github.com/ruby/rbs/pull/2665)) - Introduce `type_fingerprint` ([#&#8203;2644](https://redirect.github.com/ruby/rbs/pull/2644)) - Add module-class alias declaration ([#&#8203;2636](https://redirect.github.com/ruby/rbs/pull/2636)) - Inline constant declaration ([#&#8203;2635](https://redirect.github.com/ruby/rbs/pull/2635)) - `self` type is rejected depending on the context ([#&#8203;2627](https://redirect.github.com/ruby/rbs/pull/2627)) - Add instance variable declaration annotation ([#&#8203;2632](https://redirect.github.com/ruby/rbs/pull/2632)) - Module-self allow void once ([#&#8203;2626](https://redirect.github.com/ruby/rbs/pull/2626)) - Support inheritance in Inline RBS declaration ([#&#8203;2630](https://redirect.github.com/ruby/rbs/pull/2630)) - Inline attribute/method definitions have comments ([#&#8203;2624](https://redirect.github.com/ruby/rbs/pull/2624)) - Inline RBS declaration for attributes (`attr_***`) ([#&#8203;2623](https://redirect.github.com/ruby/rbs/pull/2623)) - Fix bad scaling in `rbs_comment_t` tokens ([#&#8203;2578](https://redirect.github.com/ruby/rbs/pull/2578)) - Update parser so that `void` type is rejected depending on the context ([#&#8203;2590](https://redirect.github.com/ruby/rbs/pull/2590)) - Implement mixin in inline RBS declarations ([#&#8203;2614](https://redirect.github.com/ruby/rbs/pull/2614)) - Validate type args given to non-generic ancestor ([#&#8203;2615](https://redirect.github.com/ruby/rbs/pull/2615)) - Add name locations to AST ([#&#8203;2595](https://redirect.github.com/ruby/rbs/pull/2595)) - Move `exit` calls to `exe/rbs` ([#&#8203;2591](https://redirect.github.com/ruby/rbs/pull/2591)) - Fix locator ([#&#8203;2588](https://redirect.github.com/ruby/rbs/pull/2588)) - Introduce standalone C parser for RBS with arena allocation ([#&#8203;2398](https://redirect.github.com/ruby/rbs/pull/2398)) - Fix subtraction of civar ([#&#8203;2369](https://redirect.github.com/ruby/rbs/pull/2369)) - Buffer with empty string ([#&#8203;2551](https://redirect.github.com/ruby/rbs/pull/2551)) - Fix unavailable MAP\_ANONYMOUS ([#&#8203;2470](https://redirect.github.com/ruby/rbs/pull/2470)) - Inline minor fix ([#&#8203;2514](https://redirect.github.com/ruby/rbs/pull/2514)) - Enable `-Wc++-compat` ([#&#8203;2463](https://redirect.github.com/ruby/rbs/pull/2463)) - Expose a method to parse type parameters ([#&#8203;2457](https://redirect.github.com/ruby/rbs/pull/2457)) - Expose and fix `Block#location` ([#&#8203;2456](https://redirect.github.com/ruby/rbs/pull/2456)) - Restore RBS::Environment#declarations for backwards-compatibility ([#&#8203;2393](https://redirect.github.com/ruby/rbs/pull/2393)) - Implement `@rbs return: T` annotation ([#&#8203;2406](https://redirect.github.com/ruby/rbs/pull/2406)) - Add `@rbs skip` annotation ([#&#8203;2405](https://redirect.github.com/ruby/rbs/pull/2405)) - Inline annotations ([#&#8203;2403](https://redirect.github.com/ruby/rbs/pull/2403)) - Inline `def` support ([#&#8203;2392](https://redirect.github.com/ruby/rbs/pull/2392)) - Suppress to GCC warning with multi-line comment ([#&#8203;2383](https://redirect.github.com/ruby/rbs/pull/2383)) - Add inline class/module declaration ([#&#8203;2390](https://redirect.github.com/ruby/rbs/pull/2390)) - Add `RBS::Source::RBS` ([#&#8203;2380](https://redirect.github.com/ruby/rbs/pull/2380)) ##### rbs prototype - \[prototype runtime] Find redefined methods ([#&#8203;2542](https://redirect.github.com/ruby/rbs/pull/2542)) ##### rbs collection ##### Miscellaneous - bundle update (2026-01-20) ([#&#8203;2818](https://redirect.github.com/ruby/rbs/pull/2818)) - Ruby 4.0.1 ([#&#8203;2823](https://redirect.github.com/ruby/rbs/pull/2823)) - \[rbs/test] Check type arguments size ([#&#8203;2809](https://redirect.github.com/ruby/rbs/pull/2809)) - Add tsort to testing dependencies ([#&#8203;2795](https://redirect.github.com/ruby/rbs/pull/2795)) - Update ruby to 4.0 ([#&#8203;2776](https://redirect.github.com/ruby/rbs/pull/2776)) - Ruby 4.0.0 preview3 ([#&#8203;2764](https://redirect.github.com/ruby/rbs/pull/2764)) - Remove test code for bundled gems ([#&#8203;2760](https://redirect.github.com/ruby/rbs/pull/2760)) - Fix `nil` size `Enumerator` test ([#&#8203;2749](https://redirect.github.com/ruby/rbs/pull/2749)) - Fix tests for rbs\_skip\_tests in ruby repo ([#&#8203;2725](https://redirect.github.com/ruby/rbs/pull/2725)) - Update rdoc to v6.16 ([#&#8203;2721](https://redirect.github.com/ruby/rbs/pull/2721)) - Run CI with "4.0.0-preview2" ([#&#8203;2718](https://redirect.github.com/ruby/rbs/pull/2718)) - Minor typo fix ([#&#8203;2676](https://redirect.github.com/ruby/rbs/pull/2676)) - Add -j option to make ([#&#8203;2658](https://redirect.github.com/ruby/rbs/pull/2658)) - Allows the use of a path list as RBS\_SKIP\_TESTS ([#&#8203;2612](https://redirect.github.com/ruby/rbs/pull/2612)) - Fix clang-format ([#&#8203;2589](https://redirect.github.com/ruby/rbs/pull/2589)) - Restrict the execution of the valgrind task to when the C code has been modified. ([#&#8203;2552](https://redirect.github.com/ruby/rbs/pull/2552)) - Set force\_ruby\_platform for bundler when head ([#&#8203;2555](https://redirect.github.com/ruby/rbs/pull/2555)) - More skip paths with valgrind ([#&#8203;2557](https://redirect.github.com/ruby/rbs/pull/2557)) - Run the `Encoding::Converter` test ([#&#8203;2550](https://redirect.github.com/ruby/rbs/pull/2550)) - Fix CI ([#&#8203;2527](https://redirect.github.com/ruby/rbs/pull/2527)) - Replace reference with official documentation ([#&#8203;2453](https://redirect.github.com/ruby/rbs/pull/2453)) - Add clangd integration for improved C extension development ([#&#8203;2481](https://redirect.github.com/ruby/rbs/pull/2481)) - Setup clang format for C code ([#&#8203;2437](https://redirect.github.com/ruby/rbs/pull/2437)) - Add `super` calls in `setup` ([#&#8203;2484](https://redirect.github.com/ruby/rbs/pull/2484)) - Suppress warnings during testing ([#&#8203;2370](https://redirect.github.com/ruby/rbs/pull/2370)) - Update rubocop-on-rbs and use plugins ([#&#8203;2345](https://redirect.github.com/ruby/rbs/pull/2345)) - Fix error at Ruby CI ([#&#8203;2445](https://redirect.github.com/ruby/rbs/pull/2445)) - Use `erb` instead of `set` for load path testing ([#&#8203;2439](https://redirect.github.com/ruby/rbs/pull/2439)) - Skip loading ruby\_memcheck ([#&#8203;2349](https://redirect.github.com/ruby/rbs/pull/2349)) - Forcibly uninstall gems even if there is a dependency problem. ([#&#8203;2346](https://redirect.github.com/ruby/rbs/pull/2346)) </details> --- ### Configuration 📅 **Schedule**: (in timezone Asia/Tokyo) - Branch creation - At any time (no schedule defined) - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/line/line-bot-sdk-ruby). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4xMDAuMCIsInVwZGF0ZWRJblZlciI6IjQzLjE4Mi4yIiwidGFyZ2V0QnJhbmNoIjoibWFzdGVyIiwibGFiZWxzIjpbImRlcGVuZGVuY3kgdXBncmFkZSJdfQ==--> --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Motoi Okuzono <motoi.okuzono+github@gmail.com>
1 parent 9c7c5aa commit 1cae247

310 files changed

Lines changed: 1077 additions & 1084 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Gemfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ group :development, :test do
77
gem 'irb', '~> 1.18.0'
88
gem 'rack', '~> 3.1' # for yard server
99
gem 'rackup', '~> 2.1' # for yard server
10-
gem 'rbs', '~> 3.10.0'
10+
gem 'rbs', '~> 4.0.0'
1111
gem 'redcarpet', '~> 3.6.0'
1212
gem 'rubocop', '~> 1.86.0', require: false
13-
gem 'steep', '~> 1.10.0'
13+
gem 'steep', '~> 2.0.0'
1414
gem 'webrick', '~> 1.9.1'
1515
gem 'yard', '~> 0.9.20' # for yard server
1616
end

Gemfile.lock

Lines changed: 20 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -8,56 +8,38 @@ PATH
88
GEM
99
remote: https://rubygems.org/
1010
specs:
11-
activesupport (8.1.2)
12-
base64
13-
bigdecimal
14-
concurrent-ruby (~> 1.0, >= 1.3.1)
15-
connection_pool (>= 2.2.5)
16-
drb
17-
i18n (>= 1.6, < 2)
18-
json
19-
logger (>= 1.4.2)
20-
minitest (>= 5.1)
21-
securerandom (>= 0.3)
22-
tzinfo (~> 2.0, >= 2.0.5)
23-
uri (>= 0.13.1)
2411
addressable (2.8.9)
2512
public_suffix (>= 2.0.2, < 8.0)
2613
ast (2.4.3)
27-
base64 (0.2.0)
28-
bigdecimal (3.3.1)
29-
concurrent-ruby (1.3.5)
30-
connection_pool (2.5.2)
14+
base64 (0.3.0)
15+
bigdecimal (4.1.2)
16+
concurrent-ruby (1.3.6)
3117
crack (1.0.1)
3218
bigdecimal
3319
rexml
34-
csv (3.3.4)
20+
csv (3.3.5)
3521
date (3.5.1)
3622
diff-lcs (1.6.2)
37-
drb (2.2.1)
3823
erb (6.0.4)
39-
ffi (1.17.2)
40-
fileutils (1.7.3)
24+
ffi (1.17.4-arm64-darwin)
25+
ffi (1.17.4-x86_64-linux-gnu)
26+
fileutils (1.8.0)
4127
hashdiff (1.2.1)
42-
i18n (1.14.7)
43-
concurrent-ruby (~> 1.0)
4428
io-console (0.8.2)
4529
irb (1.18.0)
4630
pp (>= 0.6.0)
4731
prism (>= 1.3.0)
4832
rdoc (>= 4.0.0)
4933
reline (>= 0.4.2)
50-
json (2.19.3)
34+
json (2.19.5)
5135
language_server-protocol (3.17.0.5)
5236
lint_roller (1.1.0)
53-
listen (3.9.0)
37+
listen (3.10.0)
38+
logger
5439
rb-fsevent (~> 0.10, >= 0.10.3)
5540
rb-inotify (~> 0.9, >= 0.9.10)
5641
logger (1.7.0)
57-
minitest (6.0.1)
58-
prism (~> 1.5)
5942
multipart-post (2.4.1)
60-
mutex_m (0.3.0)
6143
parallel (1.27.0)
6244
parser (3.3.11.1)
6345
ast (~> 2.4.1)
@@ -79,8 +61,9 @@ GEM
7961
rb-fsevent (0.11.2)
8062
rb-inotify (0.11.1)
8163
ffi (~> 1.0)
82-
rbs (3.10.4)
64+
rbs (4.0.2)
8365
logger
66+
prism (>= 1.6.0)
8467
tsort
8568
rdoc (7.2.0)
8669
erb
@@ -120,34 +103,31 @@ GEM
120103
prism (~> 1.7)
121104
ruby-progressbar (1.13.0)
122105
securerandom (0.4.1)
123-
steep (1.10.0)
124-
activesupport (>= 5.1)
106+
steep (2.0.0)
125107
concurrent-ruby (>= 1.1.10)
126108
csv (>= 3.0.9)
127109
fileutils (>= 1.1.0)
128110
json (>= 2.1.0)
129111
language_server-protocol (>= 3.17.0.4, < 4.0)
130112
listen (~> 3.0)
131113
logger (>= 1.3.0)
132-
mutex_m (>= 0.3.0)
133-
parser (>= 3.1)
114+
parser (>= 3.2)
115+
prism (>= 0.25.0)
134116
rainbow (>= 2.2.2, < 4.0)
135-
rbs (~> 3.9)
117+
rbs (~> 4.0)
136118
securerandom (>= 0.1)
137119
strscan (>= 1.0.0)
138120
terminal-table (>= 2, < 5)
139121
uri (>= 0.12.0)
140122
stringio (3.2.0)
141-
strscan (3.1.3)
123+
strscan (3.1.8)
142124
terminal-table (4.0.0)
143125
unicode-display_width (>= 1.1.1, < 4)
144126
tsort (0.2.0)
145-
tzinfo (2.0.6)
146-
concurrent-ruby (~> 1.0)
147127
unicode-display_width (3.2.0)
148128
unicode-emoji (~> 4.1)
149129
unicode-emoji (4.2.0)
150-
uri (1.0.3)
130+
uri (1.1.1)
151131
webmock (3.26.2)
152132
addressable (>= 2.8.0)
153133
crack (>= 0.3.2)
@@ -167,11 +147,11 @@ DEPENDENCIES
167147
rack (~> 3.1)
168148
rackup (~> 2.1)
169149
rake (~> 13.0)
170-
rbs (~> 3.10.0)
150+
rbs (~> 4.0.0)
171151
redcarpet (~> 3.6.0)
172152
rspec (~> 3.13.0)
173153
rubocop (~> 1.86.0)
174-
steep (~> 1.10.0)
154+
steep (~> 2.0.0)
175155
webmock (~> 3.26.0)
176156
webrick (~> 1.9.1)
177157
yard (~> 0.9.20)

generator/src/main/resources/line-bot-sdk-ruby-generator/api.pebble

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,7 @@ module Line
8484
{%- endif %}
8585
{%- endfor %}
8686
# @return [Array((String|nil), Integer, Hash{String => String})] when other HTTP status code is returned. String is HTTP response body itself.
87-
{#- Remove this steep:ignore after https://github.com/soutaro/steep/issues/1603 is resolved #}
88-
def {{op.nickname}}_with_http_info( # steep:ignore MethodBodyTypeMismatch
87+
def {{op.nickname}}_with_http_info(
8988
{%- for param in op.allParams %}
9089
{{param.paramName}}:{{ param.required ? '' : ' nil' }}{{ loop.last ? '' : ',' -}}
9190
{%- endfor %}
@@ -127,7 +126,7 @@ module Line
127126
json.transform_keys! do |key|
128127
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
129128
end
130-
response_body = Line::Bot::V2::{{ packageName | camelize }}::{{ response.content['application/json'].schema.complexType }}.create(json) # steep:ignore InsufficientKeywordArguments
129+
response_body = Line::Bot::V2::{{ packageName | camelize }}::{{ response.content['application/json'].schema.complexType }}.create(json)
131130
[response_body, {{ response.code }}, response.each_header.to_h]
132131
{%- else %}
133132
[response.body, {{ response.code }}, response.each_header.to_h]

generator/src/main/resources/line-bot-sdk-ruby-generator/model.pebble

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ module Line
7676
{%- if property.items.isModel -%}
7777
@{{ property.name }} = {{ property.name }}{{ property.required ? '' : '&' }}.map do |item|
7878
if item.is_a?(Hash)
79-
Line::Bot::V2::{{ packageName | camelize }}::{{ property.complexType }}.create(**item) # steep:ignore InsufficientKeywordArguments
79+
Line::Bot::V2::{{ packageName | camelize }}::{{ property.complexType }}.create(**item)
8080
else
8181
item
8282
end
@@ -85,7 +85,7 @@ module Line
8585
@{{ property.name }} = {{ property.name }}
8686
{%- endif -%}
8787
{%- elseif property.isModel -%}
88-
@{{ property.name }} = {{ property.name }}.is_a?(Line::Bot::V2::{{ packageName | camelize }}::{{ property.baseType }}){% if not property.required %} || {{ property.name }}.nil?{% endif %} ? {{ property.name }} : Line::Bot::V2::{{ packageName | camelize }}::{{ property.baseType }}.create(**{{ property.name }}) # steep:ignore
88+
@{{ property.name }} = {{ property.name }}.is_a?(Line::Bot::V2::{{ packageName | camelize }}::{{ property.baseType }}){% if not property.required %} || {{ property.name }}.nil?{% endif %} ? {{ property.name }} : Line::Bot::V2::{{ packageName | camelize }}::{{ property.baseType }}.create(**{{ property.name }})
8989
{%- elseif model.model.vendorExtensions.get("x-selector").propertyName != property.name -%}
9090
@{{ property.name }} = {{ property.name }}
9191
{%- endif -%}
@@ -107,13 +107,15 @@ module Line
107107
# Create an instance of the class from a hash
108108
# @param args [Hash] Hash containing all the required attributes
109109
# @return [Line::Bot::V2::{{ packageName | camelize }}::{{ model.model.classname }}] Instance of the class
110-
def self.create(args) # steep:ignore
110+
def self.create(args)
111111
symbolized_args = Line::Bot::V2::Utils.deep_symbolize(args)
112112
{%- if model.model.vendorExtensions.get("x-children") != null and model.model.vendorExtensions.get("x-discriminator-property") != null %}
113113
klass = detect_class(type: symbolized_args[:{{ model.model.vendorExtensions.get("x-discriminator-property") }}])
114-
return klass.new(**symbolized_args) if klass # steep:ignore
114+
return klass.new(**symbolized_args) if klass # steep:ignore UnannotatedEmptyCollection
115115
{%- endif %}
116-
return new(**symbolized_args) # steep:ignore
116+
{%- set steepIgnore = '' -%}
117+
{%- for p in model.model.requiredVars %}{%- if p.defaultValue == null and model.model.vendorExtensions.get("x-selector").propertyName != p.name %}{%- set steepIgnore = ' # steep:ignore InsufficientKeywordArguments' %}{%- endif %}{%- endfor %}
118+
return new(**symbolized_args){{ steepIgnore }}
117119
end
118120

119121
# @param other [Object] Object to compare

lib/line/bot/v2/channel_access_token/api/channel_access_token_client.rb

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def initialize(base_url: nil, http_options: {})
4949
# @see https://developers.line.biz/en/reference/messaging-api/#get-all-valid-channel-access-token-key-ids-v2-1
5050
# @return [Array(Line::Bot::V2::ChannelAccessToken::ChannelAccessTokenKeyIdsResponse, Integer, Hash{String => String})] when HTTP status code is 200
5151
# @return [Array((String|nil), Integer, Hash{String => String})] when other HTTP status code is returned. String is HTTP response body itself.
52-
def gets_all_valid_channel_access_token_key_ids_with_http_info( # steep:ignore MethodBodyTypeMismatch
52+
def gets_all_valid_channel_access_token_key_ids_with_http_info(
5353
client_assertion_type:,
5454
client_assertion:
5555
)
@@ -70,7 +70,7 @@ def gets_all_valid_channel_access_token_key_ids_with_http_info( # steep:ignore M
7070
json.transform_keys! do |key|
7171
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
7272
end
73-
response_body = Line::Bot::V2::ChannelAccessToken::ChannelAccessTokenKeyIdsResponse.create(json) # steep:ignore InsufficientKeywordArguments
73+
response_body = Line::Bot::V2::ChannelAccessToken::ChannelAccessTokenKeyIdsResponse.create(json)
7474
[response_body, 200, response.each_header.to_h]
7575
else
7676
[response.body, response.code.to_i, response.each_header.to_h]
@@ -109,7 +109,7 @@ def gets_all_valid_channel_access_token_key_ids(
109109
# @return [Array(Line::Bot::V2::ChannelAccessToken::IssueShortLivedChannelAccessTokenResponse, Integer, Hash{String => String})] when HTTP status code is 200
110110
# @return [Array(Line::Bot::V2::ChannelAccessToken::ErrorResponse, Integer, Hash{String => String})] when HTTP status code is 400
111111
# @return [Array((String|nil), Integer, Hash{String => String})] when other HTTP status code is returned. String is HTTP response body itself.
112-
def issue_channel_token_with_http_info( # steep:ignore MethodBodyTypeMismatch
112+
def issue_channel_token_with_http_info(
113113
grant_type:,
114114
client_id:,
115115
client_secret:
@@ -133,14 +133,14 @@ def issue_channel_token_with_http_info( # steep:ignore MethodBodyTypeMismatch
133133
json.transform_keys! do |key|
134134
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
135135
end
136-
response_body = Line::Bot::V2::ChannelAccessToken::IssueShortLivedChannelAccessTokenResponse.create(json) # steep:ignore InsufficientKeywordArguments
136+
response_body = Line::Bot::V2::ChannelAccessToken::IssueShortLivedChannelAccessTokenResponse.create(json)
137137
[response_body, 200, response.each_header.to_h]
138138
when 400
139139
json = Line::Bot::V2::Utils.deep_underscore(JSON.parse(response.body))
140140
json.transform_keys! do |key|
141141
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
142142
end
143-
response_body = Line::Bot::V2::ChannelAccessToken::ErrorResponse.create(json) # steep:ignore InsufficientKeywordArguments
143+
response_body = Line::Bot::V2::ChannelAccessToken::ErrorResponse.create(json)
144144
[response_body, 400, response.each_header.to_h]
145145
else
146146
[response.body, response.code.to_i, response.each_header.to_h]
@@ -182,7 +182,7 @@ def issue_channel_token(
182182
# @see https://developers.line.biz/en/reference/messaging-api/#issue-channel-access-token-v2-1
183183
# @return [Array(Line::Bot::V2::ChannelAccessToken::IssueChannelAccessTokenResponse, Integer, Hash{String => String})] when HTTP status code is 200
184184
# @return [Array((String|nil), Integer, Hash{String => String})] when other HTTP status code is returned. String is HTTP response body itself.
185-
def issue_channel_token_by_jwt_with_http_info( # steep:ignore MethodBodyTypeMismatch
185+
def issue_channel_token_by_jwt_with_http_info(
186186
grant_type:,
187187
client_assertion_type:,
188188
client_assertion:
@@ -206,7 +206,7 @@ def issue_channel_token_by_jwt_with_http_info( # steep:ignore MethodBodyTypeMism
206206
json.transform_keys! do |key|
207207
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
208208
end
209-
response_body = Line::Bot::V2::ChannelAccessToken::IssueChannelAccessTokenResponse.create(json) # steep:ignore InsufficientKeywordArguments
209+
response_body = Line::Bot::V2::ChannelAccessToken::IssueChannelAccessTokenResponse.create(json)
210210
[response_body, 200, response.each_header.to_h]
211211
else
212212
[response.body, response.code.to_i, response.each_header.to_h]
@@ -253,7 +253,7 @@ def issue_channel_token_by_jwt(
253253
# @see https://developers.line.biz/en/reference/messaging-api/#issue-stateless-channel-access-token
254254
# @return [Array(Line::Bot::V2::ChannelAccessToken::IssueStatelessChannelAccessTokenResponse, Integer, Hash{String => String})] when HTTP status code is 200
255255
# @return [Array((String|nil), Integer, Hash{String => String})] when other HTTP status code is returned. String is HTTP response body itself.
256-
def issue_stateless_channel_token_with_http_info( # steep:ignore MethodBodyTypeMismatch
256+
def issue_stateless_channel_token_with_http_info(
257257
grant_type: nil,
258258
client_assertion_type: nil,
259259
client_assertion: nil,
@@ -281,7 +281,7 @@ def issue_stateless_channel_token_with_http_info( # steep:ignore MethodBodyTypeM
281281
json.transform_keys! do |key|
282282
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
283283
end
284-
response_body = Line::Bot::V2::ChannelAccessToken::IssueStatelessChannelAccessTokenResponse.create(json) # steep:ignore InsufficientKeywordArguments
284+
response_body = Line::Bot::V2::ChannelAccessToken::IssueStatelessChannelAccessTokenResponse.create(json)
285285
[response_body, 200, response.each_header.to_h]
286286
else
287287
[response.body, response.code.to_i, response.each_header.to_h]
@@ -330,7 +330,7 @@ def issue_stateless_channel_token(
330330
# @see https://developers.line.biz/en/reference/messaging-api/#revoke-longlived-or-shortlived-channel-access-token
331331
# @return [Array((String|nil), Integer, Hash{String => String})] when HTTP status code is 200
332332
# @return [Array((String|nil), Integer, Hash{String => String})] when other HTTP status code is returned. String is HTTP response body itself.
333-
def revoke_channel_token_with_http_info( # steep:ignore MethodBodyTypeMismatch
333+
def revoke_channel_token_with_http_info(
334334
access_token:
335335
)
336336
path = "/v2/oauth/revoke"
@@ -380,7 +380,7 @@ def revoke_channel_token(
380380
# @see https://developers.line.biz/en/reference/messaging-api/#revoke-channel-access-token-v2-1
381381
# @return [Array((String|nil), Integer, Hash{String => String})] when HTTP status code is 200
382382
# @return [Array((String|nil), Integer, Hash{String => String})] when other HTTP status code is returned. String is HTTP response body itself.
383-
def revoke_channel_token_by_jwt_with_http_info( # steep:ignore MethodBodyTypeMismatch
383+
def revoke_channel_token_by_jwt_with_http_info(
384384
client_id:,
385385
client_secret:,
386386
access_token:
@@ -438,7 +438,7 @@ def revoke_channel_token_by_jwt(
438438
# @see https://developers.line.biz/en/reference/messaging-api/#verify-channel-access-token
439439
# @return [Array(Line::Bot::V2::ChannelAccessToken::VerifyChannelAccessTokenResponse, Integer, Hash{String => String})] when HTTP status code is 200
440440
# @return [Array((String|nil), Integer, Hash{String => String})] when other HTTP status code is returned. String is HTTP response body itself.
441-
def verify_channel_token_with_http_info( # steep:ignore MethodBodyTypeMismatch
441+
def verify_channel_token_with_http_info(
442442
access_token:
443443
)
444444
path = "/v2/oauth/verify"
@@ -458,7 +458,7 @@ def verify_channel_token_with_http_info( # steep:ignore MethodBodyTypeMismatch
458458
json.transform_keys! do |key|
459459
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
460460
end
461-
response_body = Line::Bot::V2::ChannelAccessToken::VerifyChannelAccessTokenResponse.create(json) # steep:ignore InsufficientKeywordArguments
461+
response_body = Line::Bot::V2::ChannelAccessToken::VerifyChannelAccessTokenResponse.create(json)
462462
[response_body, 200, response.each_header.to_h]
463463
else
464464
[response.body, response.code.to_i, response.each_header.to_h]
@@ -491,7 +491,7 @@ def verify_channel_token(
491491
# @see https://developers.line.biz/en/reference/messaging-api/#verify-channel-access-token-v2-1
492492
# @return [Array(Line::Bot::V2::ChannelAccessToken::VerifyChannelAccessTokenResponse, Integer, Hash{String => String})] when HTTP status code is 200
493493
# @return [Array((String|nil), Integer, Hash{String => String})] when other HTTP status code is returned. String is HTTP response body itself.
494-
def verify_channel_token_by_jwt_with_http_info( # steep:ignore MethodBodyTypeMismatch
494+
def verify_channel_token_by_jwt_with_http_info(
495495
access_token:
496496
)
497497
path = "/oauth2/v2.1/verify"
@@ -510,7 +510,7 @@ def verify_channel_token_by_jwt_with_http_info( # steep:ignore MethodBodyTypeMis
510510
json.transform_keys! do |key|
511511
Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key
512512
end
513-
response_body = Line::Bot::V2::ChannelAccessToken::VerifyChannelAccessTokenResponse.create(json) # steep:ignore InsufficientKeywordArguments
513+
response_body = Line::Bot::V2::ChannelAccessToken::VerifyChannelAccessTokenResponse.create(json)
514514
[response_body, 200, response.each_header.to_h]
515515
else
516516
[response.body, response.code.to_i, response.each_header.to_h]

lib/line/bot/v2/channel_access_token/model/channel_access_token_key_ids_response.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ def initialize(
4242
# Create an instance of the class from a hash
4343
# @param args [Hash] Hash containing all the required attributes
4444
# @return [Line::Bot::V2::ChannelAccessToken::ChannelAccessTokenKeyIdsResponse] Instance of the class
45-
def self.create(args) # steep:ignore
45+
def self.create(args)
4646
symbolized_args = Line::Bot::V2::Utils.deep_symbolize(args)
47-
return new(**symbolized_args) # steep:ignore
47+
return new(**symbolized_args) # steep:ignore InsufficientKeywordArguments
4848
end
4949

5050
# @param other [Object] Object to compare

lib/line/bot/v2/channel_access_token/model/error_response.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ def initialize(
4747
# Create an instance of the class from a hash
4848
# @param args [Hash] Hash containing all the required attributes
4949
# @return [Line::Bot::V2::ChannelAccessToken::ErrorResponse] Instance of the class
50-
def self.create(args) # steep:ignore
50+
def self.create(args)
5151
symbolized_args = Line::Bot::V2::Utils.deep_symbolize(args)
52-
return new(**symbolized_args) # steep:ignore
52+
return new(**symbolized_args)
5353
end
5454

5555
# @param other [Object] Object to compare

lib/line/bot/v2/channel_access_token/model/issue_channel_access_token_response.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@ def initialize(
6060
# Create an instance of the class from a hash
6161
# @param args [Hash] Hash containing all the required attributes
6262
# @return [Line::Bot::V2::ChannelAccessToken::IssueChannelAccessTokenResponse] Instance of the class
63-
def self.create(args) # steep:ignore
63+
def self.create(args)
6464
symbolized_args = Line::Bot::V2::Utils.deep_symbolize(args)
65-
return new(**symbolized_args) # steep:ignore
65+
return new(**symbolized_args) # steep:ignore InsufficientKeywordArguments
6666
end
6767

6868
# @param other [Object] Object to compare

0 commit comments

Comments
 (0)