File tree Expand file tree Collapse file tree
crates/ty_python_semantic/src/types Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ pub(crate) struct SubscriptError<'db> {
3232}
3333
3434#[ derive( Debug ) ]
35- pub ( crate ) enum SubscriptErrorKind < ' db > {
35+ enum SubscriptErrorKind < ' db > {
3636 /// An index is out of bounds for a literal tuple/string/bytes subscript.
3737 IndexOutOfBounds {
3838 kind : & ' static str ,
@@ -81,14 +81,14 @@ pub(crate) enum SubscriptErrorKind<'db> {
8181}
8282
8383impl < ' db > SubscriptError < ' db > {
84- pub ( super ) fn new ( result_ty : Type < ' db > , error : SubscriptErrorKind < ' db > ) -> Self {
84+ fn new ( result_ty : Type < ' db > , error : SubscriptErrorKind < ' db > ) -> Self {
8585 Self {
8686 result_ty,
8787 errors : vec ! [ error] ,
8888 }
8989 }
9090
91- pub ( super ) fn with_errors ( result_ty : Type < ' db > , errors : Vec < SubscriptErrorKind < ' db > > ) -> Self {
91+ fn with_errors ( result_ty : Type < ' db > , errors : Vec < SubscriptErrorKind < ' db > > ) -> Self {
9292 Self { result_ty, errors }
9393 }
9494
@@ -253,7 +253,7 @@ impl<'db> SubscriptErrorKind<'db> {
253253 }
254254}
255255
256- pub ( super ) fn map_union_subscript < ' db , F > (
256+ fn map_union_subscript < ' db , F > (
257257 db : & ' db dyn Db ,
258258 union : UnionType < ' db > ,
259259 mut map_fn : F ,
You can’t perform that action at this time.
0 commit comments