MeirKriheli / python-bidi

BIDI algorithm related functions
GNU Lesser General Public License v3.0
103 stars 13 forks source link

Change assert to implicit type checking #14

Open nmfzone opened 3 years ago

nmfzone commented 3 years ago

Better to use implicit type checking rather using assert, which will breaks the application if the character type not just L, R, AN, or EN. For example \u2069 which is PDI, or \u2067 which is RLI.