From 66652cebf23e6aa6f2710c54a79db747e1c1bab2 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sun, 1 Nov 2026 19:50:00 +0000 Subject: [PATCH 1/2] Bump the gems group across 1 directory with 8 updates Bumps the gems group with 8 updates in the / directory: | Package | From | To | | --- | --- | --- | | [connection_pool](https://github.com/mperham/connection_pool) | `2.4.1` | `3.0.2` | | [csv](https://github.com/ruby/csv) | `3.2.8` | `3.3.7` | | [mysql2](https://github.com/brianmario/mysql2) | `0.5.6` | `0.5.7` | | [pg](https://github.com/ged/ruby-pg) | `1.5.2` | `1.7.0` | | [sqlite3](https://github.com/sparklemotion/sqlite3-ruby) | `2.0.2` | `2.10.2` | | [minitest](https://github.com/minitest/minitest) | `5.24.0` | `6.0.6` | | [steep](https://github.com/soutaro/steep) | `1.6.0` | `2.1.0` | | [rubocop](https://github.com/rubocop/rubocop) | `1.74.0` | `1.92.2` | Updates `connection_pool` from 2.4.1 to 3.0.2 - [Changelog](https://github.com/mperham/connection_pool/blob/main/Changes.md) - [Commits](https://github.com/mperham/connection_pool/compare/v2.4.1...v3.0.2) Updates `csv` from 3.2.8 to 3.3.7 - [Release notes](https://github.com/ruby/csv/releases) - [Changelog](https://github.com/ruby/csv/blob/main/NEWS.md) - [Commits](https://github.com/ruby/csv/compare/v3.2.8...v3.3.7) Updates `mysql2` from 0.5.6 to 0.5.7 - [Release notes](https://github.com/brianmario/mysql2/releases) - [Commits](https://github.com/brianmario/mysql2/compare/0.5.6...0.5.7) Updates `pg` from 1.5.2 to 1.7.0 - [Changelog](https://github.com/ged/ruby-pg/blob/master/CHANGELOG.md) - [Commits](https://github.com/ged/ruby-pg/compare/v1.5.2...v1.7.0) Updates `sqlite3` from 2.0.2 to 2.10.2 - [Release notes](https://github.com/sparklemotion/sqlite3-ruby/releases) - [Changelog](https://github.com/sparklemotion/sqlite3-ruby/blob/main/CHANGELOG.md) - [Commits](https://github.com/sparklemotion/sqlite3-ruby/compare/v2.0.2...v2.10.2) Updates `minitest` from 5.24.0 to 6.0.6 - [Changelog](https://github.com/minitest/minitest/blob/master/History.rdoc) - [Commits](https://github.com/minitest/minitest/compare/v5.24.0...v6.0.6) Updates `steep` from 1.6.0 to 2.1.0 - [Release notes](https://github.com/soutaro/steep/releases) - [Changelog](https://github.com/soutaro/steep/blob/master/CHANGELOG.md) - [Commits](https://github.com/soutaro/steep/compare/v1.6.0...v2.1.0) Updates `rubocop` from 1.74.0 to 1.92.2 - [Release notes](https://github.com/rubocop/rubocop/releases) - [Changelog](https://github.com/rubocop/rubocop/blob/master/CHANGELOG.md) - [Commits](https://github.com/rubocop/rubocop/compare/v1.74.0...v1.92.2) --- updated-dependencies: - dependency-name: connection_pool dependency-version: 3.0.2 dependency-type: direct:production update-type: version-update:semver-major dependency-group: gems - dependency-name: csv dependency-version: 3.3.7 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: gems - dependency-name: minitest dependency-version: 6.0.6 dependency-type: direct:production update-type: version-update:semver-major dependency-group: gems - dependency-name: mysql2 dependency-version: 0.5.7 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: gems - dependency-name: pg dependency-version: 1.7.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: gems - dependency-name: rubocop dependency-version: 1.92.2 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: gems - dependency-name: sqlite3 dependency-version: 2.10.2 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: gems - dependency-name: steep dependency-version: 2.1.0 dependency-type: direct:production update-type: version-update:semver-major dependency-group: gems ... Signed-off-by: dependabot[bot] --- Gemfile | 2 +- Gemfile.lock | 124 +++++++++++++++++++++++++-------------------------- 2 files changed, 62 insertions(+), 64 deletions(-) diff --git a/Gemfile b/Gemfile index 6bd5784..7ba0c54 100644 --- a/Gemfile +++ b/Gemfile @@ -6,7 +6,7 @@ source 'https://rubygems.org' gem 'connection_pool' gem 'csv' # used by the generated mysql2 code (:copyfrom); a bundled gem since Ruby 3.4 gem 'mysql2' -gem 'pg', '1.5.2' +gem 'pg', '1.7.0' gem 'sqlite3' gem 'minitest' gem 'rake' diff --git a/Gemfile.lock b/Gemfile.lock index d447357..070bee8 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,39 +1,28 @@ GEM remote: https://rubygems.org/ specs: - abbrev (0.1.2) - activesupport (7.1.3.3) - base64 - bigdecimal - concurrent-ruby (~> 1.0, >= 1.0.2) - connection_pool (>= 2.2.5) - drb - i18n (>= 1.6, < 2) - minitest (>= 5.1) - mutex_m - tzinfo (~> 2.0) - ast (2.4.2) + ast (2.4.3) async (2.46.0) console (~> 1.29) fiber-annotation io-event (~> 1.21) - base64 (0.2.0) - bigdecimal (3.1.5) - concurrent-ruby (1.2.3) - connection_pool (2.4.1) + bigdecimal (4.1.3) + concurrent-ruby (1.3.8) + connection_pool (3.0.2) console (1.38.0) fiber-annotation fiber-local (~> 1.1) json - csv (3.2.8) - drb (2.2.0) - ruby2_keywords - ffi (1.16.3) + csv (3.3.7) + drb (2.2.3) + ffi (1.17.4) + ffi (1.17.4-arm64-darwin) + ffi (1.17.4-x86_64-linux-gnu) fiber-annotation (0.2.0) fiber-local (1.1.0) fiber-storage fiber-storage (1.0.1) - fileutils (1.7.2) + fileutils (1.8.1) google-protobuf (4.36.2) bigdecimal rake (~> 13.3) @@ -43,81 +32,90 @@ GEM google-protobuf (4.36.2-x86_64-linux-gnu) bigdecimal rake (~> 13.3) - i18n (1.14.5) - concurrent-ruby (~> 1.0) io-event (1.22.3) - json (2.7.1) - language_server-protocol (3.17.0.3) + json (3.1.0) + language_server-protocol (3.17.0.6) lint_roller (1.1.0) - listen (3.9.0) + listen (3.10.1) + logger rb-fsevent (~> 0.10, >= 0.10.3) rb-inotify (~> 0.9, >= 0.9.10) - logger (1.6.0) - mini_portile2 (2.8.7) - minitest (5.24.0) - mutex_m (0.2.0) - mysql2 (0.5.6) - parallel (1.28.0) - parser (3.3.1.0) + logger (1.7.0) + mini_portile2 (2.8.9) + minitest (6.0.6) + drb (~> 2.0) + prism (~> 1.5) + mysql2 (0.5.7) + bigdecimal + parallel (2.3.0) + parser (3.3.13.0) ast (~> 2.4.1) racc - pg (1.5.2) - racc (1.7.3) + pg (1.7.0) + pg (1.7.0-arm64-darwin) + pg (1.7.0-x86_64-linux) + prism (1.9.0) + racc (1.8.1) rainbow (3.1.1) rake (13.4.2) rb-fsevent (0.11.2) - rb-inotify (0.10.1) + rb-inotify (0.11.1) ffi (~> 1.0) - rbs (3.4.0) - abbrev + rbs (4.2.0) + logger + prism (>= 1.6.0) + tsort regexp_parser (2.13.1) - rubocop (1.74.0) - json (~> 2.3) + rubocop (1.92.2) + json (>= 2.3) language_server-protocol (~> 3.17.0.2) lint_roller (~> 1.1.0) - parallel (~> 1.10) + parallel (>= 1.10) parser (>= 3.3.0.2) rainbow (>= 2.2.2, < 4.0) - regexp_parser (>= 2.9.3, < 3.0) - rubocop-ast (>= 1.38.0, < 2.0) + regexp_parser (>= 2.11.3, < 3.0) + rubocop-ast (>= 1.49.0, < 2.0) ruby-progressbar (~> 1.7) unicode-display_width (>= 2.4.0, < 4.0) - rubocop-ast (1.40.0) - parser (>= 3.3.1.0) + rubocop-ast (1.50.0) + parser (>= 3.3.7.2) + prism (~> 1.7) ruby-progressbar (1.13.0) - ruby2_keywords (0.0.5) ruby_wasm (2.10.1) logger ruby_wasm (2.10.1-arm64-darwin) logger ruby_wasm (2.10.1-x86_64-linux) logger - securerandom (0.3.1) - sqlite3 (2.0.2) + securerandom (0.4.1) + sqlite3 (2.10.2) mini_portile2 (~> 2.8.0) - sqlite3 (2.0.2-arm64-darwin) - sqlite3 (2.0.2-x86_64-linux-gnu) - steep (1.6.0) - activesupport (>= 5.1) + sqlite3 (2.10.2-arm64-darwin) + sqlite3 (2.10.2-x86_64-linux-gnu) + steep (2.1.0) concurrent-ruby (>= 1.1.10) csv (>= 3.0.9) fileutils (>= 1.1.0) json (>= 2.1.0) - language_server-protocol (>= 3.15, < 4.0) + language_server-protocol (>= 3.17.0.4, < 4.0) listen (~> 3.0) logger (>= 1.3.0) - parser (>= 3.1) + parser (>= 3.2) + prism (>= 0.25.0) rainbow (>= 2.2.2, < 4.0) - rbs (>= 3.1.0) + rbs (~> 4.2) securerandom (>= 0.1) strscan (>= 1.0.0) - terminal-table (>= 2, < 4) - strscan (3.0.7) - terminal-table (3.0.2) - unicode-display_width (>= 1.1.1, < 3) - tzinfo (2.0.6) - concurrent-ruby (~> 1.0) - unicode-display_width (2.5.0) + terminal-table (>= 2, < 5) + uri (>= 0.12.0) + strscan (3.1.8) + terminal-table (4.0.0) + unicode-display_width (>= 1.1.1, < 4) + tsort (0.2.0) + unicode-display_width (3.3.0) + unicode-emoji (~> 4.3) + unicode-emoji (4.3.0) + uri (1.1.2) PLATFORMS arm64-darwin-23 @@ -131,7 +129,7 @@ DEPENDENCIES google-protobuf (~> 4.0) minitest mysql2 - pg (= 1.5.2) + pg (= 1.7.0) rake rubocop ruby_wasm (~> 2.7) From 5b067066116764bed8cba10a93b3787ae2116059 Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Sun, 1 Nov 2026 19:58:47 +0000 Subject: [PATCH 2/2] Fix Steep 2 / RBS 4 breakage from gem bumps - Steepfile: drop library "set" (Set is core in RBS 4) - Generated RBS: transaction block yields self, not instance (Steep 2 rejects self <: instance) - Regenerate examples/ and golden files; record Steep 2's new UnannotatedEmptyCollection warnings Co-Authored-By: Doron Eli Rachman --- Steepfile | 4 ++-- examples/mysql2/query_sql.rbs | 2 +- examples/pg/query_sql.rbs | 2 +- examples/sqlite3/query_sql.rbs | 2 +- lib/sqlc_gen_ruby/drivers/base.rb | 2 +- lib/sqlc_gen_ruby/drivers/sqlite3.rb | 2 +- steep_expectations.yml | 20 +++++++++++++++++++ test/features_test.rb | 2 +- test/golden/mysql2/default/my_queries_sql.rbs | 2 +- test/golden/mysql2/default/other_sql.rbs | 2 +- test/golden/mysql2/default/query_sql.rbs | 2 +- .../mysql2/ruby31_gemfile/my_queries_sql.rbs | 2 +- .../mysql2/ruby31_gemfile/other_sql.rbs | 2 +- .../mysql2/ruby31_gemfile/query_sql.rbs | 2 +- test/golden/pg/default/my_queries_sql.rbs | 2 +- test/golden/pg/default/other_sql.rbs | 2 +- test/golden/pg/default/query_sql.rbs | 2 +- .../pg/ruby31_gemfile/my_queries_sql.rbs | 2 +- test/golden/pg/ruby31_gemfile/other_sql.rbs | 2 +- test/golden/pg/ruby31_gemfile/query_sql.rbs | 2 +- .../golden/sqlite3/default/my_queries_sql.rbs | 2 +- test/golden/sqlite3/default/other_sql.rbs | 2 +- test/golden/sqlite3/default/query_sql.rbs | 2 +- .../sqlite3/ruby31_gemfile/my_queries_sql.rbs | 2 +- .../sqlite3/ruby31_gemfile/other_sql.rbs | 2 +- .../sqlite3/ruby31_gemfile/query_sql.rbs | 2 +- 26 files changed, 46 insertions(+), 26 deletions(-) diff --git a/Steepfile b/Steepfile index de52a99..dea21da 100644 --- a/Steepfile +++ b/Steepfile @@ -2,6 +2,6 @@ target :gen do check "examples" signature "examples" - # stdlib signatures for the types the generated code refers to (BigDecimal, Date, Time, IPAddr, Set, Tempfile; CSV has no useful signature) - library "bigdecimal", "date", "time", "ipaddr", "set", "tempfile" + # stdlib signatures for the types the generated code refers to (BigDecimal, Date, Time, IPAddr, Tempfile; Set is core since RBS 4, CSV has no useful signature) + library "bigdecimal", "date", "time", "ipaddr", "tempfile" end diff --git a/examples/mysql2/query_sql.rbs b/examples/mysql2/query_sql.rbs index df71556..7b2a71b 100644 --- a/examples/mysql2/query_sql.rbs +++ b/examples/mysql2/query_sql.rbs @@ -203,7 +203,7 @@ module Mysql2Codegen def initialize: (untyped db, ?logger: untyped) -> void - def transaction: [T] (?isolation: (:read_uncommitted | :read_committed | :repeatable_read | :serializable)?) { (instance) -> T } -> T + def transaction: [T] (?isolation: (:read_uncommitted | :read_committed | :repeatable_read | :serializable)?) { (self) -> T } -> T def get_author: (id: Integer) -> GetAuthorRow? diff --git a/examples/pg/query_sql.rbs b/examples/pg/query_sql.rbs index 7c71e61..1742e90 100644 --- a/examples/pg/query_sql.rbs +++ b/examples/pg/query_sql.rbs @@ -206,7 +206,7 @@ module PgCodegen def initialize: (untyped db, ?logger: untyped) -> void - def transaction: [T] (?isolation: (:read_uncommitted | :read_committed | :repeatable_read | :serializable)?) { (instance) -> T } -> T + def transaction: [T] (?isolation: (:read_uncommitted | :read_committed | :repeatable_read | :serializable)?) { (self) -> T } -> T def get_author: (id: Integer) -> GetAuthorRow? diff --git a/examples/sqlite3/query_sql.rbs b/examples/sqlite3/query_sql.rbs index 96a1a35..6e7f0a0 100644 --- a/examples/sqlite3/query_sql.rbs +++ b/examples/sqlite3/query_sql.rbs @@ -114,7 +114,7 @@ module Sqlite3Codegen def initialize: (untyped db, ?logger: untyped) -> void - def transaction: [T] (?mode: (:deferred | :immediate | :exclusive)?) { (instance) -> T } -> T + def transaction: [T] (?mode: (:deferred | :immediate | :exclusive)?) { (self) -> T } -> T def get_author: (id: Integer) -> GetAuthorRow? diff --git a/lib/sqlc_gen_ruby/drivers/base.rb b/lib/sqlc_gen_ruby/drivers/base.rb index 58ea322..0302250 100644 --- a/lib/sqlc_gen_ruby/drivers/base.rb +++ b/lib/sqlc_gen_ruby/drivers/base.rb @@ -132,7 +132,7 @@ class NotFound < StandardError; end ISOLATION_RBS = 'ISOLATION_LEVELS: Hash[Symbol, String]' TRANSACTION_RBS = 'def transaction: [T] (?isolation: (:read_uncommitted | :read_committed | :repeatable_read | ' \ - ':serializable)?) { (instance) -> T } -> T' + ':serializable)?) { (self) -> T } -> T' private diff --git a/lib/sqlc_gen_ruby/drivers/sqlite3.rb b/lib/sqlc_gen_ruby/drivers/sqlite3.rb index 0c34686..078b8ce 100644 --- a/lib/sqlc_gen_ruby/drivers/sqlite3.rb +++ b/lib/sqlc_gen_ruby/drivers/sqlite3.rb @@ -16,7 +16,7 @@ def class_methods [ [NOT_FOUND, "class NotFound < StandardError\nend"], [INITIALIZE, 'def initialize: (untyped db, ?logger: untyped) -> void'], - [TRANSACTION, "def transaction: [T] (?mode: (:deferred | :immediate | :exclusive)?) { (instance) -> T } -> T"] + [TRANSACTION, "def transaction: [T] (?mode: (:deferred | :immediate | :exclusive)?) { (self) -> T } -> T"] ] end diff --git a/steep_expectations.yml b/steep_expectations.yml index cb894d1..a71323d 100644 --- a/steep_expectations.yml +++ b/steep_expectations.yml @@ -21,6 +21,16 @@ severity: WARNING message: 'Cannot find the declaration of constant: `Mysql2`' code: Ruby::UnknownConstant + - range: + start: + line: 198 + character: 66 + end: + line: 198 + character: 81 + severity: WARNING + message: Empty kwargs doesn't have type annotation + code: Ruby::UnannotatedEmptyCollection - range: start: line: 615 @@ -53,6 +63,16 @@ severity: WARNING message: 'Cannot find the declaration of constant: `PG`' code: Ruby::UnknownConstant + - range: + start: + line: 213 + character: 58 + end: + line: 213 + character: 69 + severity: WARNING + message: Empty kwargs doesn't have type annotation + code: Ruby::UnannotatedEmptyCollection - range: start: line: 227 diff --git a/test/features_test.rb b/test/features_test.rb index c6753f0..b01a95c 100644 --- a/test/features_test.rb +++ b/test/features_test.rb @@ -92,7 +92,7 @@ def test_command_signatures assert_includes rbs, 'def copy_authors: (Array[CopyAuthorsArgs] rows) -> void' assert_includes rbs, 'def list_authors: -> Array[ListAuthorsRow]' assert_includes rbs, 'def delete_author: (id: Integer) -> void' - assert_includes rbs, 'def transaction: [T] (?isolation: (:read_uncommitted | :read_committed | :repeatable_read | :serializable)?) { (instance) -> T } -> T' + assert_includes rbs, 'def transaction: [T] (?isolation: (:read_uncommitted | :read_committed | :repeatable_read | :serializable)?) { (self) -> T } -> T' end def test_named_nullable_parameters_are_optional_keywords diff --git a/test/golden/mysql2/default/my_queries_sql.rbs b/test/golden/mysql2/default/my_queries_sql.rbs index 78fae5b..31a9283 100644 --- a/test/golden/mysql2/default/my_queries_sql.rbs +++ b/test/golden/mysql2/default/my_queries_sql.rbs @@ -10,7 +10,7 @@ module Mysql2Codegen def initialize: (untyped db, ?logger: untyped) -> void - def transaction: [T] (?isolation: (:read_uncommitted | :read_committed | :repeatable_read | :serializable)?) { (instance) -> T } -> T + def transaction: [T] (?isolation: (:read_uncommitted | :read_committed | :repeatable_read | :serializable)?) { (self) -> T } -> T def with_numbers2_go: (c0: Integer) -> void diff --git a/test/golden/mysql2/default/other_sql.rbs b/test/golden/mysql2/default/other_sql.rbs index 572546b..5a73803 100644 --- a/test/golden/mysql2/default/other_sql.rbs +++ b/test/golden/mysql2/default/other_sql.rbs @@ -19,7 +19,7 @@ module Mysql2Codegen def initialize: (untyped db, ?logger: untyped) -> void - def transaction: [T] (?isolation: (:read_uncommitted | :read_committed | :repeatable_read | :serializable)?) { (instance) -> T } -> T + def transaction: [T] (?isolation: (:read_uncommitted | :read_committed | :repeatable_read | :serializable)?) { (self) -> T } -> T def no_cols: (c0: Integer, c1: String, c2: Float, c3: String, c4: Integer) -> void diff --git a/test/golden/mysql2/default/query_sql.rbs b/test/golden/mysql2/default/query_sql.rbs index a44461a..2aef607 100644 --- a/test/golden/mysql2/default/query_sql.rbs +++ b/test/golden/mysql2/default/query_sql.rbs @@ -238,7 +238,7 @@ module Mysql2Codegen def initialize: (untyped db, ?logger: untyped) -> void - def transaction: [T] (?isolation: (:read_uncommitted | :read_committed | :repeatable_read | :serializable)?) { (instance) -> T } -> T + def transaction: [T] (?isolation: (:read_uncommitted | :read_committed | :repeatable_read | :serializable)?) { (self) -> T } -> T def get_author: (id: Integer) -> GetAuthorRow? diff --git a/test/golden/mysql2/ruby31_gemfile/my_queries_sql.rbs b/test/golden/mysql2/ruby31_gemfile/my_queries_sql.rbs index 78fae5b..31a9283 100644 --- a/test/golden/mysql2/ruby31_gemfile/my_queries_sql.rbs +++ b/test/golden/mysql2/ruby31_gemfile/my_queries_sql.rbs @@ -10,7 +10,7 @@ module Mysql2Codegen def initialize: (untyped db, ?logger: untyped) -> void - def transaction: [T] (?isolation: (:read_uncommitted | :read_committed | :repeatable_read | :serializable)?) { (instance) -> T } -> T + def transaction: [T] (?isolation: (:read_uncommitted | :read_committed | :repeatable_read | :serializable)?) { (self) -> T } -> T def with_numbers2_go: (c0: Integer) -> void diff --git a/test/golden/mysql2/ruby31_gemfile/other_sql.rbs b/test/golden/mysql2/ruby31_gemfile/other_sql.rbs index b31697b..afd2285 100644 --- a/test/golden/mysql2/ruby31_gemfile/other_sql.rbs +++ b/test/golden/mysql2/ruby31_gemfile/other_sql.rbs @@ -19,7 +19,7 @@ module Mysql2Codegen def initialize: (untyped db, ?logger: untyped) -> void - def transaction: [T] (?isolation: (:read_uncommitted | :read_committed | :repeatable_read | :serializable)?) { (instance) -> T } -> T + def transaction: [T] (?isolation: (:read_uncommitted | :read_committed | :repeatable_read | :serializable)?) { (self) -> T } -> T def no_cols: (c0: Integer, c1: String, c2: Float, c3: String, c4: Integer) -> void diff --git a/test/golden/mysql2/ruby31_gemfile/query_sql.rbs b/test/golden/mysql2/ruby31_gemfile/query_sql.rbs index 848d0a2..d3dc555 100644 --- a/test/golden/mysql2/ruby31_gemfile/query_sql.rbs +++ b/test/golden/mysql2/ruby31_gemfile/query_sql.rbs @@ -238,7 +238,7 @@ module Mysql2Codegen def initialize: (untyped db, ?logger: untyped) -> void - def transaction: [T] (?isolation: (:read_uncommitted | :read_committed | :repeatable_read | :serializable)?) { (instance) -> T } -> T + def transaction: [T] (?isolation: (:read_uncommitted | :read_committed | :repeatable_read | :serializable)?) { (self) -> T } -> T def get_author: (id: Integer) -> GetAuthorRow? diff --git a/test/golden/pg/default/my_queries_sql.rbs b/test/golden/pg/default/my_queries_sql.rbs index c31b4fb..4861a8f 100644 --- a/test/golden/pg/default/my_queries_sql.rbs +++ b/test/golden/pg/default/my_queries_sql.rbs @@ -10,7 +10,7 @@ module PgCodegen def initialize: (untyped db, ?logger: untyped) -> void - def transaction: [T] (?isolation: (:read_uncommitted | :read_committed | :repeatable_read | :serializable)?) { (instance) -> T } -> T + def transaction: [T] (?isolation: (:read_uncommitted | :read_committed | :repeatable_read | :serializable)?) { (self) -> T } -> T def with_numbers2_go: (c0: bool) -> void diff --git a/test/golden/pg/default/other_sql.rbs b/test/golden/pg/default/other_sql.rbs index e3a1a3f..e56a652 100644 --- a/test/golden/pg/default/other_sql.rbs +++ b/test/golden/pg/default/other_sql.rbs @@ -19,7 +19,7 @@ module PgCodegen def initialize: (untyped db, ?logger: untyped) -> void - def transaction: [T] (?isolation: (:read_uncommitted | :read_committed | :repeatable_read | :serializable)?) { (instance) -> T } -> T + def transaction: [T] (?isolation: (:read_uncommitted | :read_committed | :repeatable_read | :serializable)?) { (self) -> T } -> T def no_cols: (c0: bool, c1: Integer, c2: String, c3: Float, c4: String) -> void diff --git a/test/golden/pg/default/query_sql.rbs b/test/golden/pg/default/query_sql.rbs index 28acc6c..ca94251 100644 --- a/test/golden/pg/default/query_sql.rbs +++ b/test/golden/pg/default/query_sql.rbs @@ -241,7 +241,7 @@ module PgCodegen def initialize: (untyped db, ?logger: untyped) -> void - def transaction: [T] (?isolation: (:read_uncommitted | :read_committed | :repeatable_read | :serializable)?) { (instance) -> T } -> T + def transaction: [T] (?isolation: (:read_uncommitted | :read_committed | :repeatable_read | :serializable)?) { (self) -> T } -> T def get_author: (id: Integer) -> GetAuthorRow? diff --git a/test/golden/pg/ruby31_gemfile/my_queries_sql.rbs b/test/golden/pg/ruby31_gemfile/my_queries_sql.rbs index c31b4fb..4861a8f 100644 --- a/test/golden/pg/ruby31_gemfile/my_queries_sql.rbs +++ b/test/golden/pg/ruby31_gemfile/my_queries_sql.rbs @@ -10,7 +10,7 @@ module PgCodegen def initialize: (untyped db, ?logger: untyped) -> void - def transaction: [T] (?isolation: (:read_uncommitted | :read_committed | :repeatable_read | :serializable)?) { (instance) -> T } -> T + def transaction: [T] (?isolation: (:read_uncommitted | :read_committed | :repeatable_read | :serializable)?) { (self) -> T } -> T def with_numbers2_go: (c0: bool) -> void diff --git a/test/golden/pg/ruby31_gemfile/other_sql.rbs b/test/golden/pg/ruby31_gemfile/other_sql.rbs index e422645..ea6efd9 100644 --- a/test/golden/pg/ruby31_gemfile/other_sql.rbs +++ b/test/golden/pg/ruby31_gemfile/other_sql.rbs @@ -19,7 +19,7 @@ module PgCodegen def initialize: (untyped db, ?logger: untyped) -> void - def transaction: [T] (?isolation: (:read_uncommitted | :read_committed | :repeatable_read | :serializable)?) { (instance) -> T } -> T + def transaction: [T] (?isolation: (:read_uncommitted | :read_committed | :repeatable_read | :serializable)?) { (self) -> T } -> T def no_cols: (c0: bool, c1: Integer, c2: String, c3: Float, c4: String) -> void diff --git a/test/golden/pg/ruby31_gemfile/query_sql.rbs b/test/golden/pg/ruby31_gemfile/query_sql.rbs index e849f4e..58f9f9d 100644 --- a/test/golden/pg/ruby31_gemfile/query_sql.rbs +++ b/test/golden/pg/ruby31_gemfile/query_sql.rbs @@ -241,7 +241,7 @@ module PgCodegen def initialize: (untyped db, ?logger: untyped) -> void - def transaction: [T] (?isolation: (:read_uncommitted | :read_committed | :repeatable_read | :serializable)?) { (instance) -> T } -> T + def transaction: [T] (?isolation: (:read_uncommitted | :read_committed | :repeatable_read | :serializable)?) { (self) -> T } -> T def get_author: (id: Integer) -> GetAuthorRow? diff --git a/test/golden/sqlite3/default/my_queries_sql.rbs b/test/golden/sqlite3/default/my_queries_sql.rbs index 290d346..c5a960b 100644 --- a/test/golden/sqlite3/default/my_queries_sql.rbs +++ b/test/golden/sqlite3/default/my_queries_sql.rbs @@ -8,7 +8,7 @@ module Sqlite3Codegen def initialize: (untyped db, ?logger: untyped) -> void - def transaction: [T] (?mode: (:deferred | :immediate | :exclusive)?) { (instance) -> T } -> T + def transaction: [T] (?mode: (:deferred | :immediate | :exclusive)?) { (self) -> T } -> T def with_numbers2_go: (c0: Integer) -> void diff --git a/test/golden/sqlite3/default/other_sql.rbs b/test/golden/sqlite3/default/other_sql.rbs index 6d993a0..f6f64ea 100644 --- a/test/golden/sqlite3/default/other_sql.rbs +++ b/test/golden/sqlite3/default/other_sql.rbs @@ -17,7 +17,7 @@ module Sqlite3Codegen def initialize: (untyped db, ?logger: untyped) -> void - def transaction: [T] (?mode: (:deferred | :immediate | :exclusive)?) { (instance) -> T } -> T + def transaction: [T] (?mode: (:deferred | :immediate | :exclusive)?) { (self) -> T } -> T def no_cols: (c0: Integer, c1: String, c2: Float, c3: String, c4: Integer) -> void diff --git a/test/golden/sqlite3/default/query_sql.rbs b/test/golden/sqlite3/default/query_sql.rbs index d4bd9f5..6746cbf 100644 --- a/test/golden/sqlite3/default/query_sql.rbs +++ b/test/golden/sqlite3/default/query_sql.rbs @@ -149,7 +149,7 @@ module Sqlite3Codegen def initialize: (untyped db, ?logger: untyped) -> void - def transaction: [T] (?mode: (:deferred | :immediate | :exclusive)?) { (instance) -> T } -> T + def transaction: [T] (?mode: (:deferred | :immediate | :exclusive)?) { (self) -> T } -> T def get_author: (id: Integer) -> GetAuthorRow? diff --git a/test/golden/sqlite3/ruby31_gemfile/my_queries_sql.rbs b/test/golden/sqlite3/ruby31_gemfile/my_queries_sql.rbs index 290d346..c5a960b 100644 --- a/test/golden/sqlite3/ruby31_gemfile/my_queries_sql.rbs +++ b/test/golden/sqlite3/ruby31_gemfile/my_queries_sql.rbs @@ -8,7 +8,7 @@ module Sqlite3Codegen def initialize: (untyped db, ?logger: untyped) -> void - def transaction: [T] (?mode: (:deferred | :immediate | :exclusive)?) { (instance) -> T } -> T + def transaction: [T] (?mode: (:deferred | :immediate | :exclusive)?) { (self) -> T } -> T def with_numbers2_go: (c0: Integer) -> void diff --git a/test/golden/sqlite3/ruby31_gemfile/other_sql.rbs b/test/golden/sqlite3/ruby31_gemfile/other_sql.rbs index 2791fe8..6d99965 100644 --- a/test/golden/sqlite3/ruby31_gemfile/other_sql.rbs +++ b/test/golden/sqlite3/ruby31_gemfile/other_sql.rbs @@ -17,7 +17,7 @@ module Sqlite3Codegen def initialize: (untyped db, ?logger: untyped) -> void - def transaction: [T] (?mode: (:deferred | :immediate | :exclusive)?) { (instance) -> T } -> T + def transaction: [T] (?mode: (:deferred | :immediate | :exclusive)?) { (self) -> T } -> T def no_cols: (c0: Integer, c1: String, c2: Float, c3: String, c4: Integer) -> void diff --git a/test/golden/sqlite3/ruby31_gemfile/query_sql.rbs b/test/golden/sqlite3/ruby31_gemfile/query_sql.rbs index 460d54e..21c81c0 100644 --- a/test/golden/sqlite3/ruby31_gemfile/query_sql.rbs +++ b/test/golden/sqlite3/ruby31_gemfile/query_sql.rbs @@ -149,7 +149,7 @@ module Sqlite3Codegen def initialize: (untyped db, ?logger: untyped) -> void - def transaction: [T] (?mode: (:deferred | :immediate | :exclusive)?) { (instance) -> T } -> T + def transaction: [T] (?mode: (:deferred | :immediate | :exclusive)?) { (self) -> T } -> T def get_author: (id: Integer) -> GetAuthorRow?