fix(sampling): import Self from typing_extensions (#1149)