Browse Source

style: format code with black to fix linter errors

pull/10222/head
fantasy0x1 2 weeks ago
parent
commit
01499a0ae1
  1. 3
      discord/enums.py

3
discord/enums.py

@ -21,6 +21,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
"""
from __future__ import annotations
import types
@ -770,7 +771,7 @@ class Locale(Enum):
@property
def language_code(self) -> str:
"""Returns the locale's language code in the format of ``language-COUNTRY``.
.. versionadded:: 2.5
"""
return _UNICODE_LANG_MAP.get(self.value, self.value)

Loading…
Cancel
Save