Skip to content

Commit 02e6f32

Browse files
committed
Move InstanceType and KnownInstanceTypes to new submodules, to improve encapsulation.
1 parent 5b10fa3 commit 02e6f32

File tree

4 files changed

+426
-400
lines changed

4 files changed

+426
-400
lines changed

crates/red_knot_python_semantic/src/types.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,10 @@ pub(crate) use crate::types::narrow::infer_narrowing_constraint;
4747
use crate::types::signatures::{Parameter, ParameterForm, Parameters};
4848
use crate::{Db, FxOrderSet, Module, Program};
4949
pub(crate) use class::{
50-
Class, ClassLiteralType, ClassType, GenericAlias, GenericClass, InstanceType, KnownClass,
51-
KnownInstanceType, NonGenericClass,
50+
Class, ClassLiteralType, ClassType, GenericAlias, GenericClass, KnownClass, NonGenericClass,
5251
};
52+
pub(crate) use instance::InstanceType;
53+
pub(crate) use known_instance::KnownInstanceType;
5354

5455
mod builder;
5556
mod call;
@@ -60,6 +61,8 @@ mod diagnostic;
6061
mod display;
6162
mod generics;
6263
mod infer;
64+
mod instance;
65+
mod known_instance;
6366
mod mro;
6467
mod narrow;
6568
mod signatures;

0 commit comments

Comments
 (0)