Skip to content

Commit

Permalink
Merge pull request #538 from Homebrew/sorbet
Browse files Browse the repository at this point in the history
Enable Sorbet typechecking
  • Loading branch information
issyl0 authored Jan 1, 2025
2 parents 81e00b3 + 4c3c362 commit 06022cb
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 5 deletions.
8 changes: 3 additions & 5 deletions lib/pycall-setup.rb
Original file line number Diff line number Diff line change
@@ -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
15 changes: 15 additions & 0 deletions lib/pycall-setup.rbi
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 06022cb

Please sign in to comment.