Skip to content

Commit

Permalink
Sorbet passes at the most basic level now
Browse files Browse the repository at this point in the history
  • Loading branch information
issyl0 committed Dec 24, 2024
1 parent 81e00b3 commit 3de77c0
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions lib/pycall-setup.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,13 @@

require "pycall/import"

include(Module.new do
module InfluxDBClient3
extend PyCall::Import

pyfrom "influxdb_client_3", import: :InfluxDBClient3
end)
end

# This was a rewrite from `include(Module.new(...))`,
# to appease Sorbet, so let's keep the existing behaviour
# as far as possible here and silence RuboCop.
include InfluxDBClient3 # rubocop:disable Style/MixinUsage

0 comments on commit 3de77c0

Please sign in to comment.