Skip to content

[MNT] remove dependency on typing-extensions#167

Merged
fkiraly merged 6 commits into
mainfrom
remove-typing
May 1, 2023
Merged

[MNT] remove dependency on typing-extensions#167
fkiraly merged 6 commits into
mainfrom
remove-typing

Conversation

@fkiraly
Copy link
Copy Markdown
Contributor

@fkiraly fkiraly commented May 1, 2023

This removes skbase's dependency on typing-extensions which was only punctually used.

Rationale is minimizing dependencies.

Comment thread skbase/lookup/_lookup.py
Comment on lines +47 to +82
# class ClassInfo(TypedDict):
# """Type definitions for information on a module's classes."""

klass: Type
name: str
description: str
tags: MutableMapping[str, Any]
is_concrete_implementation: bool
is_base_class: bool
is_base_object: bool
authors: Optional[Union[List[str], str]]
module_name: str
# klass: Type
# name: str
# description: str
# tags: MutableMapping[str, Any]
# is_concrete_implementation: bool
# is_base_class: bool
# is_base_object: bool
# authors: Optional[Union[List[str], str]]
# module_name: str


class FunctionInfo(TypedDict):
"""Information on a module's functions."""
# class FunctionInfo(TypedDict):
# """Information on a module's functions."""

func: FunctionType
name: str
description: str
module_name: str
# func: FunctionType
# name: str
# description: str
# module_name: str


class ModuleInfo(TypedDict):
"""Module information type definitions."""
# class ModuleInfo(TypedDict):
# """Module information type definitions."""

path: str
name: str
classes: MutableMapping[str, ClassInfo]
functions: MutableMapping[str, FunctionInfo]
__all__: List[str]
authors: str
is_package: bool
contains_concrete_class_implementations: bool
contains_base_classes: bool
contains_base_objects: bool
# path: str
# name: str
# classes: MutableMapping[str, ClassInfo]
# functions: MutableMapping[str, FunctionInfo]
# __all__: List[str]
# authors: str
# is_package: bool
# contains_concrete_class_implementations: bool
# contains_base_classes: bool
# contains_base_objects: bool

Check notice

Code scanning / CodeQL

Commented-out code

This comment appears to contain commented-out code.
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented May 1, 2023

Codecov Report

Merging #167 (001b650) into main (6de4b93) will decrease coverage by 0.21%.
The diff coverage is 100.00%.

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

@@            Coverage Diff             @@
##             main     #167      +/-   ##
==========================================
- Coverage   82.82%   82.62%   -0.21%     
==========================================
  Files          39       39              
  Lines        2795     2762      -33     
==========================================
- Hits         2315     2282      -33     
  Misses        480      480              
Impacted Files Coverage Δ
skbase/validate/_named_objects.py 100.00% <ø> (ø)
skbase/lookup/_lookup.py 94.88% <100.00%> (-0.53%) ⬇️

@fkiraly fkiraly merged commit 8da2ce5 into main May 1, 2023
@fkiraly fkiraly added the maintenance Continuous integration, unit testing & package distribution label May 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintenance Continuous integration, unit testing & package distribution

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants