Skip to content

Commit 9ba8955

Browse files
author
Matt Muller
committed
Fix rbs
1 parent e80b107 commit 9ba8955

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

gems/smithy-client/sig/smithy-client/output.rbs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ module Smithy
22
module Client
33
# RBS does not support Delegator.
44
# the behavior mimics `Smithy::Client::Output` as much as possible.
5-
interface _Output[DATA, StandardError]
5+
interface _Output[DATA_OR_ERROR]
66
def context: () -> HandlerContext?
7-
def data: () -> DATA?
8-
def error: () -> StandardError?
7+
def data: () -> DATA_OR_ERROR?
8+
def error: () -> DATA_OR_ERROR?
99
end
1010
end
1111
end

gems/smithy-schema/lib/smithy-schema/shapes.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ def initialize(options = {})
1818
# @return [Hash<String, Object>]
1919
attr_accessor :traits
2020

21-
# @return [Hash<Object, Object>]
21+
# @return [Object]
2222
def [](key)
2323
@metadata[key]
2424
end
2525

26-
# @param [Object] key
26+
# @param [Symbol] key
2727
# @param [Object] value
2828
def []=(key, value)
2929
@metadata[key] = value

gems/smithy-schema/sig/smithy-schema/shapes.rbs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ module Smithy
66

77
attr_accessor id: String?
88
attr_accessor traits: Hash[String, untyped]
9-
def []: (untyped) -> untyped
10-
def []=: (untyped, untyped) -> void
9+
def []: (Symbol) -> Object
10+
def []=: (Symbol, Object) -> void
1111
end
1212

1313
class Structure < Shape

0 commit comments

Comments
 (0)