acryl-datahub 0.15.0.4rc1__py3-none-any.whl → 0.15.0.4rc2__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of acryl-datahub might be problematic. Click here for more details.

@@ -6,6 +6,7 @@ from typing import ClassVar, Dict, List, Optional, Type, Union
6
6
  from deprecated import deprecated
7
7
  from typing_extensions import Self
8
8
 
9
+ from datahub._codegen.aspect import _Aspect
9
10
  from datahub.utilities.urns.error import InvalidUrnError
10
11
 
11
12
  URN_TYPES: Dict[str, Type["_SpecificUrn"]] = {}
@@ -270,7 +271,7 @@ class Urn:
270
271
 
271
272
 
272
273
  class _SpecificUrn(Urn):
273
- ENTITY_TYPE: str = ""
274
+ ENTITY_TYPE: ClassVar[str] = ""
274
275
 
275
276
  def __init_subclass__(cls) -> None:
276
277
  # Validate the subclass.
@@ -286,7 +287,10 @@ class _SpecificUrn(Urn):
286
287
  return super().__init_subclass__()
287
288
 
288
289
  @classmethod
289
- def underlying_key_aspect_type(cls) -> Type:
290
+ def underlying_key_aspect_type(cls) -> Type[_Aspect]:
291
+ raise NotImplementedError()
292
+
293
+ def to_key_aspect(self) -> _Aspect:
290
294
  raise NotImplementedError()
291
295
 
292
296
  @classmethod