Skip to content

fix: Add missing Tokenizer and TokenizationError imports#80

Open
ada-cinar wants to merge 1 commit into
mainfrom
feature/76-fix-missing-tokenizer-imports
Open

fix: Add missing Tokenizer and TokenizationError imports#80
ada-cinar wants to merge 1 commit into
mainfrom
feature/76-fix-missing-tokenizer-imports

Conversation

@ada-cinar

Copy link
Copy Markdown
Member

Summary

Fixes #76

Added missing imports for Tokenizer and TokenizationError to python/durak/__init__.py.

Changes

  • ✅ Added Tokenizer (type alias) to import statement
  • ✅ Added TokenizationError (exception class) to import statement
  • Both were already declared in __all__ but not imported from .tokenizer

Impact

Users can now successfully import:

from durak import Tokenizer, TokenizationError

Testing

Verified with:

PYTHONPATH=python python3 -c "from durak import Tokenizer, TokenizationError"

Type

  • Bug fix
  • Enhancement
  • Documentation

Closes #76

- Added Tokenizer (type alias) to public API imports
- Added TokenizationError (exception class) to public API imports
- Both were already declared in __all__ but not imported
- Users can now successfully import them: from durak import Tokenizer, TokenizationError
@fbkaragoz

Copy link
Copy Markdown
Member

No, Tokenizer should be abstract level returning error imports as well w/o extra specification in import path

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Missing Import for Tokenizer and TokenizationError in __init__.py

2 participants