Sha256: 27c2607912ad1e027df339b03b4ae13039cb75382e523eac66966af78fc3171c

Contents?: true

Size: 1.24 KB

Versions: 59

Compression:

Stored size: 1.24 KB

Contents

# typed: true
# 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

59 entries across 59 versions & 1 rubygems

Version Path
sorbet-runtime-0.4.4300 lib/types/runtime_profiled.rb
sorbet-runtime-0.4.4299 lib/types/runtime_profiled.rb
sorbet-runtime-0.4.4298 lib/types/runtime_profiled.rb
sorbet-runtime-0.4.4297 lib/types/runtime_profiled.rb
sorbet-runtime-0.4.4296 lib/types/runtime_profiled.rb
sorbet-runtime-0.4.4295 lib/types/runtime_profiled.rb
sorbet-runtime-0.4.4294 lib/types/runtime_profiled.rb
sorbet-runtime-0.4.4293 lib/types/runtime_profiled.rb
sorbet-runtime-0.4.4292 lib/types/runtime_profiled.rb
sorbet-runtime-0.4.4289 lib/types/runtime_profiled.rb
sorbet-runtime-0.4.4288 lib/types/runtime_profiled.rb
sorbet-runtime-0.4.4287 lib/types/runtime_profiled.rb
sorbet-runtime-0.4.4286 lib/types/runtime_profiled.rb
sorbet-runtime-0.4.4285 lib/types/runtime_profiled.rb
sorbet-runtime-0.4.4284 lib/types/runtime_profiled.rb
sorbet-runtime-0.4.4283 lib/types/runtime_profiled.rb
sorbet-runtime-0.4.4282 lib/types/runtime_profiled.rb
sorbet-runtime-0.4.4280 lib/types/runtime_profiled.rb
sorbet-runtime-0.4.4279 lib/types/runtime_profiled.rb
sorbet-runtime-0.4.4277 lib/types/runtime_profiled.rb