Skip to content

Commit

Permalink
show deprecation warnings in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
hsheth2 committed Nov 17, 2023
1 parent 3873d02 commit c6bf8d8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs-website/sphinx/apidocs/urns.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ URNs
======

.. automodule:: datahub.metadata.urns
:exclude-members: LI_DOMAIN, URN_PREFIX, url_encode, validate, get_type, get_entity_id, get_entity_id_as_string, get_domain
:exclude-members: LI_DOMAIN, URN_PREFIX, url_encode, validate, get_type, get_entity_id, get_entity_id_as_string, get_domain, underlying_key_aspect_type
:member-order: alphabetical
:inherited-members:
5 changes: 4 additions & 1 deletion metadata-ingestion/scripts/avro_codegen.py
Original file line number Diff line number Diff line change
Expand Up @@ -354,11 +354,14 @@ def write_urn_classes(key_aspects: List[dict], urn_dir: Path) -> None:
from typing import ClassVar, List, Optional, Type, TYPE_CHECKING
from deprecated import deprecated
import functools
from deprecated.sphinx import deprecated as _sphinx_deprecated
from datahub.utilities.urn_encoder import UrnEncoder
from datahub.utilities.urns._urn_base import _SpecificUrn, Urn
from datahub.utilities.urns.error import InvalidUrnError
deprecated = functools.partial(_sphinx_deprecated, version="0.12.0.2")
"""

for aspect in key_aspects:
Expand Down

0 comments on commit c6bf8d8

Please sign in to comment.