Sha256: c1059f13ab93d44526d6aed29fd6ed1cd7f95915daade2fcb2ff483c21ebc7f6

Contents?: true

Size: 1.24 KB

Versions: 22

Compression:

Stored size: 1.24 KB

Contents

# typed: strict
# frozen_string_literal: true

#
# Hey there!
#
# T::Utils::Runtime is just a random class. Chances are[^1] it's not a class
# that your variables are instances of, which means that using it in a type
# signature will always create a type error.
#
# At first, it doesn't seem like a good thing to have a type that's sole
# purpose is to cause type errors. The trick is that within the ruby-types
# team, we only use T::Utils::RuntimeProfiled within 'generated' sigs.
#
# Unlike normal sigs, generated sigs never raise at runtime. They also log the
# actual, observed type on type error to a central location. We're using these
# observed types to refine and expand our type coverage in pay-server.
#
# What does this all mean for you?
#
# - If you were just curious, that's it! Leave the sig as is, and carry on.
# - If you wanted to replace this sig with a better, hand-authored one:
#
#   1. Remove 'generated' from the sig.
#   2. Update the sig to your liking
#
# Questions? :portal-to: => #ruby-types
#
# [^1]: Unless you happen to be calling T::Utils::RuntimeProfiled.new directly...
#

module T; end
module T::Utils; end
# Sorbet guesses this type instead of T.untyped when passed --suggest-runtime-profiled

class T::Utils::RuntimeProfiled; end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
sorbet-runtime-0.4.4346 lib/types/runtime_profiled.rb
sorbet-runtime-0.4.4345 lib/types/runtime_profiled.rb
sorbet-runtime-0.4.4344 lib/types/runtime_profiled.rb
sorbet-runtime-0.4.4343 lib/types/runtime_profiled.rb
sorbet-runtime-0.4.4342 lib/types/runtime_profiled.rb
sorbet-runtime-0.4.4341 lib/types/runtime_profiled.rb
sorbet-runtime-0.4.4340 lib/types/runtime_profiled.rb
sorbet-runtime-0.4.4339 lib/types/runtime_profiled.rb
sorbet-runtime-0.4.4338 lib/types/runtime_profiled.rb
sorbet-runtime-0.4.4337 lib/types/runtime_profiled.rb
sorbet-runtime-0.4.4336 lib/types/runtime_profiled.rb
sorbet-runtime-0.4.4334 lib/types/runtime_profiled.rb
sorbet-runtime-0.4.4333 lib/types/runtime_profiled.rb
sorbet-runtime-0.4.4332 lib/types/runtime_profiled.rb
sorbet-runtime-0.4.4331 lib/types/runtime_profiled.rb
sorbet-runtime-0.4.4330 lib/types/runtime_profiled.rb
sorbet-runtime-0.4.4329 lib/types/runtime_profiled.rb
sorbet-runtime-0.4.4328 lib/types/runtime_profiled.rb
sorbet-runtime-0.4.4327 lib/types/runtime_profiled.rb
sorbet-runtime-0.4.4326 lib/types/runtime_profiled.rb