diff --git a/lib/pycall-setup.rb b/lib/pycall-setup.rb index 9668839..37f6aee 100644 --- a/lib/pycall-setup.rb +++ b/lib/pycall-setup.rb @@ -1,9 +1,7 @@ +# typed: false # frozen_string_literal: true require "pycall/import" +include PyCall::Import # rubocop:disable Style/MixinUsage -include(Module.new do - extend PyCall::Import - - pyfrom "influxdb_client_3", import: :InfluxDBClient3 -end) +pyfrom "influxdb_client_3", import: :InfluxDBClient3 diff --git a/lib/pycall-setup.rbi b/lib/pycall-setup.rbi new file mode 100644 index 0000000..3d46e87 --- /dev/null +++ b/lib/pycall-setup.rbi @@ -0,0 +1,15 @@ +# typed: true + +module InfluxDBClient3; end + +module PyCall + def self.init(*args); end + + module Import + def self.pyfrom(*args); end + + def self.import(*args); end + end + + class PyError; end # rubocop:disable Lint/EmptyClass +end